hardkubectl
Create an internal ClusterIP service with a specific port mapping
command
kubectl create service clusterip SERVICE --tcp=PORT:TARGET_PORTalso accepted
kubectl create service clusteripcommand
kubectl create service clusterip SERVICE --tcp=PORT:TARGET_PORTalso accepted
kubectl create service clusteripPart of the Kubernetes CLI (kubectl) — Services category.
| Flag | Purpose |
|---|---|
--tcp | Set to: PORT:TARGET_PORT |
Test your recall — not just your reading.
Practice with interactive quiz →