← Services534 / 640
hardkubectl

Create an Ingress resource to route HTTP traffic to a service

command

kubectl create ingress INGRESS --rule HOST/PATH=SERVICE:PORT

also accepted

kubectl create ingress

Command breakdown

Part of the Kubernetes CLI (kubectl) — Services category.

kubectlcreateingressINGRESS--ruleHOST/PATH=SERVICE:PORT
FlagPurpose
--ruleBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →