Difference between revisions of "Kubectl expose"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
<code>[[kubectl expose pod]] check-ip --name check-ip-service --port 80</code>
 
<code>[[kubectl expose pod]] check-ip --name check-ip-service --port 80</code>
  
kubectl expose rc nginx --port=80 --target-port=8000
+
<code>kubectl expose rc nginx --port=80 --target-port=8000
  https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources
+
  https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources</code>
  
 
<code>[[kubectl expose deployment]] your-deployment-name --type=LoadBalancer --name=my-service
 
<code>[[kubectl expose deployment]] your-deployment-name --type=LoadBalancer --name=my-service

Revision as of 07:00, 28 March 2023

Advertising: