hardkubectl
Change the type of a service from ClusterIP to LoadBalancer using a JSON patch
command
kubectl patch service SERVICE -p '{"spec":{"type":"LoadBalancer"}}'also accepted
kubectl patch servicecommand
kubectl patch service SERVICE -p '{"spec":{"type":"LoadBalancer"}}'also accepted
kubectl patch servicePart of the Kubernetes CLI (kubectl) — Services category.
| Flag | Purpose |
|---|---|
-p | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →