Skip to content

NodePort service exposure

NodePort is a networking configuration in Kubernetes that exposes a service on each Node's IP at a static port.^[400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md]

To enable external access to a service using this method, the Service object's Type must be set to NodePort.^[400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md]

Once configured, the service becomes accessible externally via <NodeIP>:<NodePort>.^[400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md]

Example: Kubernetes Dashboard

In the context of deploying the Kubernetes Dashboard, the default service type can be changed to NodePort to allow users to access the UI from outside the cluster^[400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md]. For example, modifying the service configuration may map the service's port 443 to port 30712 on the node^[400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md].

  • [[Service]]
  • [[ClusterIP]]
  • [[LoadBalancer]]

Sources

  • 400-devops-06-kubernetes-k8s-learning-01dashboard-dashboatdinstall.md