Difference between revisions of "Kubectl expose"

From wikieduonline
Jump to navigation Jump to search
Line 3: Line 3:
 
Take a [[replication controller]], [[Kubernetes services|service]] or [[Pod (Kubernetes)|pod]] and expose it as a new Kubernetes Service
 
Take a [[replication controller]], [[Kubernetes services|service]] or [[Pod (Kubernetes)|pod]] and expose it as a new Kubernetes Service
  
 
+
<code>[[kubectl expose deployment]] nginxapp --name=nginxclusterip --port=80 --target-port=8080</code>
[[kubectl expose deployment]] nginxapp --name=nginxclusterip --port=80 --target-port=8080
 
  
 
== Related ==
 
== Related ==

Revision as of 17:38, 3 March 2022

Advertising: