← Services530 / 640
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 service

Test your recall — not just your reading.

Practice with interactive quiz →