From the course: Kubernetes: Microservices
Unlock the full course today
Join today to access over 24,000 courses taught by industry experts.
An overview of Kubernetes services - Kubernetes Tutorial
From the course: Kubernetes: Microservices
An overview of Kubernetes services
- [Instructor] In the last chapter, you got your learning environment up and running. In this chapter, I'll walk you through the finer details of how to understand Kubernetes service types. The Kubernetes service API is incredibly powerful because it can create a service that has a stable IP address and name. And when a request is sent to those things, it load balances traffic to pods whose IP addresses are ever changing. That means instead of trying to keep track of pod IP addresses, which change frequently because pods are terminated and restarted, you can use the service IP address or name to ask for data. Let's look at an example. This is the YAML manifest for your frontend UI deployment and service. And that microservice, in order to have anything to show you that's interesting, it has to make a request to the learning resources API in order to gather data. So, in this example, I've hardcoded the IP address of a pod and the port number in order for that application to make the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
An overview of Kubernetes services8m
-
(Locked)
Examine a ClusterIP service9m 1s
-
(Locked)
Examine a NodePort service5m 15s
-
(Locked)
Examine a LoadBalancer service7m 17s
-
(Locked)
Challenge: Deploy and test a new microservice1m 4s
-
(Locked)
Solution: Deploy and test a new microservice4m 53s
-
(Locked)
-
-