Difference between revisions of "NodePort"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
(6 intermediate revisions by 2 users not shown) | |||
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> | ||
+ | |||
+ | <code>NodePort</code> [[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. | ||
+ | https://kubernetes.io/docs/tutorials/kubernetes-basics/expose/expose-intro/ | ||
[[kubectl create nodeport]] | [[kubectl create nodeport]] | ||
Line 6: | Line 9: | ||
== Related == | == Related == | ||
* <code>[[ClusterIP]]</code> | * <code>[[ClusterIP]]</code> | ||
+ | * <code>[[Kubernetes LoadBalancer|LoadBalancer]]</code> | ||
* [[CKA 1.23]], [[CKA 1.24]] [[Understand ClusterIP, NodePort, LoadBalancer service types and endpoints]] | * [[CKA 1.23]], [[CKA 1.24]] [[Understand ClusterIP, NodePort, LoadBalancer service types and endpoints]] | ||
+ | * <code>[[kubectl describe services mylbservice]]</code> | ||
+ | * [[ExternalName]] | ||
+ | * [[type: NodePort]] | ||
== See also == | == See also == |
Latest revision as of 17:59, 15 February 2024
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.
https://kubernetes.io/docs/tutorials/kubernetes-basics/expose/expose-intro/
kubectl create nodeport
Related[edit]
ClusterIP
LoadBalancer
- CKA 1.23, CKA 1.24 Understand ClusterIP, NodePort, LoadBalancer service types and endpoints
kubectl describe services mylbservice
- ExternalName
- type: NodePort
See also[edit]
- NodePort,
kubectl create nodeport
- Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
Advertising: