Preview HTTPRoute YAML for an ingress
Preview the Gateway API resources that would be generated from an Ingress.
Shows the HTTPRoute YAML without applying it, allowing review before conversion. Also displays any warnings about unsupported annotations.
Use –all to preview all ingresses in a namespace, or -A for all namespaces.
kubelb ingress preview [NAME] [flags]
# Preview single ingress
kubelb ingress preview my-app -n default
# Preview all ingresses in a namespace
kubelb ingress preview --all -n kube-system
# Preview all ingresses across all namespaces
kubelb ingress preview -A
--all Preview all ingresses in namespace (requires -n)
-A, --all-namespaces Preview all ingresses across all namespaces
-h, --help help for preview
-n, --namespace string Namespace of the ingress
--copy-tls-secrets Copy TLS secrets to Gateway namespace [$KUBELB_COPY_TLS_SECRETS] (default true)
--disable-envoy-gateway-features Disable Envoy Gateway policies [$KUBELB_DISABLE_ENVOY_GATEWAY_FEATURES]
--domain-replace string Source domain to strip [$KUBELB_DOMAIN_REPLACE]
--domain-suffix string Target domain suffix [$KUBELB_DOMAIN_SUFFIX]
--gateway-annotations stringMap Gateway annotations (key=value,...) [$KUBELB_GATEWAY_ANNOTATIONS]
--gateway-class string GatewayClass name [$KUBELB_GATEWAY_CLASS] (default "kubelb")
--gateway-name string Gateway name [$KUBELB_GATEWAY_NAME] (default "kubelb")
--gateway-namespace string Gateway namespace [$KUBELB_GATEWAY_NAMESPACE] (default "kubelb")
--ingress-class string Only convert Ingresses with this class [$KUBELB_INGRESS_CLASS]
--kubeconfig string Path to the kubeconfig for the tenant
--log-file string Log to file instead of stderr
--log-format string Log format (cli, json, text) - defaults to cli
--log-level string Log level (error, warn, info, debug, trace) - overrides verbosity
--propagate-external-dns Propagate external-dns annotations [$KUBELB_PROPAGATE_EXTERNAL_DNS] (default true)
-q, --quiet Suppress non-essential output (equivalent to --v=0)
-t, --tenant string Name of the tenant
--timeout duration Timeout for the command (e.g., 30s, 5m) (default 4m0s)
-v, --v int Verbosity level (0-4): 0=errors only, 1=basic info, 2=detailed status, 3=debug info, 4=trace (default 1)