kubectl patch's Examples

This command would make kubernetes services from type:clustorIP to NodePort.

kubectl patch svc tracing --type='json' -p '[{"op":"replace","path":"/spec/type","value":"NodePort"}]' -n=istio-system