From the course: Kubernetes: Microservices
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Solution: Deploy and test a new microservice - Kubernetes Tutorial
From the course: Kubernetes: Microservices
Solution: Deploy and test a new microservice
(upbeat music) - [Presenter] You've attempted the challenge, and now I'll show you a solution to the problem. In the challenge, you were tasked with creating a cluster IP service to front a set of Engine X pods. Your requirements were to update the challenge.YAML manifest to create a clusterIP service called nginx-service that sends traffic to pods with the label app:nginx. Let's take care of that first. Alright, going to the YAML file, scrolling down. All right, so we've got the Nginginx-service, that's all ready to go. It says selector add pod label here. Let's find the pod label in the deployment. All right, so this is defining the pod set this deployment will create and under labels we see app:nginx, so that's the pod label app:nginx, and then it says add service type here. We are going to make this a Cluster IP service and the capitalization matters in Kubernetes. So make sure it's a capital C at the beginning and a capital I and a P at the end. I'm going to save that file. Let's…
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)
-
-