Difference between revisions of "Kubectl expose"

From wikieduonline
Jump to navigation Jump to search
Line 4: Line 4:
  
 
<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
  
 
  kubectl expose rc nginx --port=80 --target-port=8000
 
  kubectl expose rc nginx --port=80 --target-port=8000

Revision as of 10:39, 3 December 2022

Advertising: