Kubectl expose: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * kubectl =Overview= <tt>expose</tt> dynamically exposes a resource (pod, etc.) as a new service. kubectl expose pod valid-pod --port=444...")
 
Line 5: Line 5:
=Overview=
=Overview=


<tt>expose</tt> dynamically exposes a resource (pod, etc.) as a new service.
<tt>expose</tt> dynamically exposes a resource (pod, service, replicationcontroller, deployment, replicaset) as a new service.


  kubectl expose pod valid-pod --port=444 --name=frontend
  kubectl expose pod valid-pod --port=444 --name=frontend

Revision as of 23:00, 13 August 2019

Internal

Overview

expose dynamically exposes a resource (pod, service, replicationcontroller, deployment, replicaset) as a new service.

kubectl expose pod valid-pod --port=444 --name=frontend