From the course: Kubernetes: Microservices
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Examine a NodePort service - Kubernetes Tutorial
From the course: Kubernetes: Microservices
Examine a NodePort service
- [Instructor] In the last video, you accessed a ClusterIP service, and in this video, I'll show you how to access data through a NodePort service. Remember, the NodePort service lets you expose a group of pods to the internet directly. When you create a NodePort service, Kubernetes opens a port on one or more of your nodes and it allows traffic in at a specific port number. I'm going to show you how this works and we are going to be exploring the echo-service. So like the learning-service, the echo-service is deployed in the default namespace. Unlike the learning-service, it is a NodePort type service and its port is 80, which is the default port. So if you're making a request to the container directly, you don't have to specify the port. Like we did with the ClusterIP service, let's get the data from the echo-service containers. We'll start by making a request to the pod IP address. Then we will see how NodePorts work and we'll make a request directly to an IP address of one of our…
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)
-
-