Skip to content

For the complete documentation index, see llms.txt. Markdown versions of all docs pages are available by appending .md to any docs URL.

Page as Markdown

    

CLI

This page focuses on the commands you’ll use most often.

print

Translates Ingress resources and prints the generated Gateway API and kgateway resources.

If you do not specify --input-file, the command reads from the cluster using your current kubeconfig context.

Typical usage:

ingress2gateway print \
  --providers=ingress-nginx \
  --emitter=kgateway \
  --input-file ./ingress.yaml

Common flags:

Flag Description
--providers=ingress-nginxSelect the Ingress NGINX provider.
--emitter=kgatewayEmit Gateway API and kgateway-specific resources.
--input-file ./ingress.yamlRead manifests from a file instead of the cluster. Repeat the flag to include multiple files.
-n, --namespaceRestrict cluster reads to a namespace.
-A, --all-namespacesRead matching resources across all namespaces.
-o, --outputSet the output format to yaml, json, or kyaml.
--allow-experimental-gw-apiInclude experimental Gateway API fields in the generated output.
--no-colorDisable ANSI color codes in CLI output.
--ingress-nginx-ingress-class=internal-nginxSelect a custom Ingress NGINX class. Defaults to nginx.

version

Prints version information.

ingress2gateway version

Help

For the complete flag reference for your build:

ingress2gateway --help
ingress2gateway print --help
Was this page helpful?