Difference between revisions of "NodePort"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 1: Line 1:
 
<code>NodePort</code> exposes the Service on each Node's IP at a static port (the NodePort). To make the node port available, Kubernetes sets up a cluster IP address, the same as if you had requested a Service of type: ClusterIP.<ref>https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types</ref>
 
<code>NodePort</code> exposes the Service on each Node's IP at a static port (the NodePort). To make the node port available, Kubernetes sets up a cluster IP address, the same as if you had requested a Service of type: ClusterIP.<ref>https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types</ref>
  
 +
 +
NodePort - Exposes the Service on the same port of each selected Node in the cluster using NAT. Makes a Service accessible from outside the cluster using <NodeIP>:<NodePort>. Superset of ClusterIP.
  
 
  [[kubectl create nodeport]]
 
  [[kubectl create nodeport]]

Revision as of 20:16, 8 November 2023

NodePort exposes the Service on each Node's IP at a static port (the NodePort). To make the node port available, Kubernetes sets up a cluster IP address, the same as if you had requested a Service of type: ClusterIP.[1]


NodePort - Exposes the Service on the same port of each selected Node in the cluster using NAT. Makes a Service accessible from outside the cluster using <NodeIP>:<NodePort>. Superset of ClusterIP.

kubectl create nodeport

Related

See also

  • https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
  • Advertising: