The Service "xxx" is invalid: spec.clusterIP: Invalid value: "None": field is immutable Because clusterIP was already created, first run kubectl delete manually, and then deploy. kubectl delete -f deploy.yaml kubectl apply -f deploy.yaml