Difference between revisions of "Kubectl expose"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 5: Line 5:
 
<code>[[kubectl expose deployment]] nginxapp --name=nginxclusterip --port=80 --target-port=8080</code>
 
<code>[[kubectl expose deployment]] nginxapp --name=nginxclusterip --port=80 --target-port=8080</code>
  
[[kubectl expose pod]] check-ip --name check-ip-service --port 80
+
<code>[[kubectl expose pod]] check-ip --name check-ip-service --port 80</code>
  
 
  kubectl expose rc nginx --port=80 --target-port=8000
 
  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
  
[[kubectl expose deployment]] your-deployment-name --type=LoadBalancer --name=my-service
+
<code>[[kubectl expose deployment]] your-deployment-name --type=LoadBalancer --name=my-service
  service/my-service exposed
+
  service/my-service exposed</code>
  
 
== Related ==
 
== Related ==

Revision as of 06:59, 28 March 2023

Advertising: