← Services533 / 640
hardkubectl

Create a LoadBalancer service that provisions an external cloud load balancer

command

kubectl create service loadbalancer SERVICE --tcp=PORT

also accepted

kubectl create service loadbalancer

Command breakdown

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

kubectlcreateserviceloadbalancerSERVICE--tcp=PORT
FlagPurpose
--tcpSet to: PORT

Test your recall — not just your reading.

Practice with interactive quiz →