Deploying and Managing Services Using Rancher Manager - Part I
35%
A ClusterIP for the Deployment
We are going to start by creating a ClusterIP Service for our todo-app. In the next section, we will see how to create an Ingress Service to expose the todo-app to the outside world. Follow these steps to create a ClusterIP Service:
- Click on
Service Discoveryand thenServices. - Select
ClusterIPas the type of Service. - Choose
todo-app-namespaceas the namespace. - Choose a name for the Service, for example,
todo-app-clusterip. - In the
Service Portssection, fill in the following details: Name:http.Listening Port:5000.Target Port:5000.
ℹ️ The
Listening Portis the port that the Service will listen on, and theTarget Portis the port that the Service forwards traffic to, which is the port that the container listens on.
- In the
Selectorsection, add the following labels:
End-to-End Kubernetes with Rancher, RKE2, K3s, Fleet, Longhorn, and NeuVector
The full journey from nothing to productionEnroll now to unlock all content and receive all future updates for free.
