Skip to content

Instantly share code, notes, and snippets.

@dasgoll
Created October 27, 2022 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasgoll/ec6de3d26355809837076017311e42ea to your computer and use it in GitHub Desktop.
Save dasgoll/ec6de3d26355809837076017311e42ea to your computer and use it in GitHub Desktop.
kubectl patch change service type from nodeport to clusterip
kubectl patch svc dbp-transaction-microservice --type='json' -p '[{"op":"replace","path":"/spec/type","value":"ClusterIP"}]'
kubectl patch svc dbp-transaction-microservice -p '{"spec": {"type": "ClusterIP"}}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment