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 serviceTest your recall — not just your reading.
Practice with interactive quiz →