From the course: Kubernetes Step-by-Step by Pearson

Unlock this course with a free trial

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

Lab 5 solution: Providing access to applications

Lab 5 solution: Providing access to applications - Kubernetes Tutorial

From the course: Kubernetes Step-by-Step by Pearson

Lab 5 solution: Providing access to applications

“

So, did you manage to do it, or did you have no clue where to get started? Well, in either way, let's run lab5.grade to find out how to get to the solution. So, the first step that you need to do, you need to make a deployment with the name sales-web. So, kubectl create deploy sales-web minus-minus replicas is three, minus-minus image is nginx, colon 1.23 will do that for you. So, that'll take a while, shouldn't take too long. Let's do a kubectl get all to see if we have this sales-web already available. Ah, it's still working. As you can see, container creating. Container creating in the first 30 seconds, that normally means that your image is still downloading. And if your internet speed is slow, it might even be a minute. So, I would advise, be patient, try again, and then you will see that everything is running. All right. But of course, to provide access to the application, just running the deployment is not enough. And that's what the script is telling us. The next step, you…

Contents