Created
October 27, 2022 08:21
-
-
Save dasgoll/ec6de3d26355809837076017311e42ea to your computer and use it in GitHub Desktop.
kubectl patch change service type from nodeport to clusterip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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