KUBERNETES(1) kubernetes KUBERNETES(1) (NAME) kubectl-create-ingress - (Ingress) (SYNOPSIS) kubectl create ingress [OPTIONS] (DESCRIPTION) (Ingress) . (OPTIONS) --allow-missing-template-keys=true true map . golang jsonpath . --annotation=[] (Annotation) ingress annotation=value --class="" (Ingress Class) --default-backend="" backend svcname:port --dry-run="none" "none" "server" "client" . client . server . --field-manager="kubectl-create" . -o, --output="" . : (json, yaml, kyaml, name, go-template, go-template- file, template, templatefile, jsonpath, jsonpath-as-json, jsonpath- file). --rule=[] host/path=service:port[,tls=secretname]. '*' pathType=Prefix . tls . --save-config=false true annotation . annotation . kubectl apply . --show-managed-fields=false true JSON YAML managedFields . --template="" -o=go-template -o=go-template-file. golang [http://golang.org/pkg/text/template/#pkg-overview]. --validate="strict" strict ( true) warn ignore ( false) . "true" "strict" . ServerSideFieldValidation api-server . "warn" API server "ignore" . "false" "ignore" . (OPTIONS INHERITED FROM PARENT COMMANDS) --as="" (impersonate) . (service account) namespace . --as-group=[] . --as-uid="" UID . --as-user-extra=[] . --cache-dir="/home/username/.kube/cache" --certificate-authority="" (certificate authority) --client-certificate="" TLS --client-key="" TLS --cluster="" kubeconfig --context="" kubeconfig --disable-compression=false true --insecure-skip-tls-verify=false true . HTTPS --kubeconfig="" kubeconfig CLI. --kuberc="" kuberc (preferences). export feature gate KUBECTL_KUBERC=false KUBERC=off . --match-server-version=false -n, --namespace="" namespace CLI --password="" (basic authentication) API --profile="none" . (none|cpu|heap|goroutine|threadcreate|block|mutex|trace) --profile-output="profile.pprof" --request-timeout="0" . ( 1s 2m 3h). ( timeout). -s, --server="" Kubernetes API --tls-server-name="" . hostname --token="" Bearer API --user="" kubeconfig --username="" API --version=false --version --version=raw --version=vX.Y.Z... --warnings-as-errors=false (EXAMPLES) # ingress 'simple' foo.com/bar svc1:8080 TLS "my-cert" kubectl create ingress simple --rule="foo.com/bar=svc1:8080,tls=my-cert" # ingress (catch-all) "/path" svc:port Ingress Class "otheringress" kubectl create ingress catch-all --class=otheringress --rule="/path=svc:port" # ingress annotation: ingress.annotation1 ingress.annotations2 kubectl create ingress annotated --class=default --rule="foo.com/bar=svc:port" \ --annotation ingress.annotation1=foo \ --annotation ingress.annotation2=bla # ingress kubectl create ingress multipath --class=default \ --rule="foo.com/=svc:port" \ --rule="foo.com/admin/=svcadmin:portadmin" # ingress pathType Prefix kubectl create ingress ingress1 --class=default \ --rule="foo.com/path*=svc:8080" \ --rule="bar.com/admin*=svc2:http" # ingress TLS ingress kubectl create ingress ingtls --class=default \ --rule="foo.com/=svc:https,tls" \ --rule="foo.com/path/subpath*=othersvc:8080" # ingress TLS secret pathType Prefix kubectl create ingress ingsecret --class=default \ --rule="foo.com/*=svc:8080,tls=secret1" # ingress backend kubectl create ingress ingdefault --class=default \ --default-backend=defaultsvc:http \ --rule="foo.com/*=svc:8080,tls=secret1" (SEE ALSO) kubectl-create(1) (HISTORY) Eric Paris (eparis at redhat dot com) kubernetes ! Eric Paris Jan 2015 KUBERNETES(1)