From the course: Kubernetes: Microservices

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Deploy the frontend microservice

Deploy the frontend microservice - Kubernetes Tutorial

From the course: Kubernetes: Microservices

Deploy the frontend microservice

- [Instructor] In the last video, you deployed two backend services, and in this video, I'll show you how to deploy the frontend service. Take a look at the 02_04 directory. There, you'll see the frontend-ui.yaml file. Let's take a look. All right, we've got a few Kubernetes objects in here, and they're separated by these three horizontal lines. The first thing we're going to create when we run this file is a namespace called frontend. The next thing that's going to be created is this deployment. It is called frontend and frontend-ui. We're going to be running three replicas of the frontend, and there's the information about the containers. Looks like we're setting a environment variable. And then finally, we are going to create a service called the frontend-service, and it's a type, LoadBalancer. That's a new type of service for us. Let's create this deployment and service. Run the command, kubectl apply -f frontend-ui.yaml. All right, it says those three things were created. Let's…

Contents