hardkubectl
Expose a single pod as a LoadBalancer service with an external IP
command
kubectl expose pod POD_NAME --port PORT --type LoadBalanceralso accepted
kubectl expose podcommand
kubectl expose pod POD_NAME --port PORT --type LoadBalanceralso accepted
kubectl expose podPart of the Kubernetes CLI (kubectl) — Services category.
| Flag | Purpose |
|---|---|
--port | Boolean flag |
--type | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →