From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Exposing applications - Kubernetes Tutorial
From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep
Exposing applications
- Okay, in the next assignment, you are going to expose some applications. So use a minikube ip command to find the IP address that is used by your minikube instance. And next add a line to /etc/hosts, which says the IP address of your minikube followed by myapp.info. And if it's necessary, change the IP address. Then you expose the updates application that you have created in task six, using a Service with the name task7svc. And ensure this application is accessible by using the URL, myapp.info. And to test use the command, curl myapp.info. So let me show you. So to start with, I need to sudo vim on /etc/hosts, and I need to make sure that myapp.info is included. I have myapp.local from a previous example. Let me change it to myapp.info. So this takes care of the hostname resolving. And then I need to expose the updates application using a service with the name, task7svc. So kubectl expose deploy updates - -name=task7svc --port=80. And let's do the kubectl get all --selector…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Module 7: Sample exam introduction13s
-
(Locked)
Learning objectives47s
-
(Locked)
Exam tips5m 9s
-
(Locked)
Tasks overview6m 54s
-
(Locked)
Grading the exam57s
-
(Locked)
Working with namespaces5m 23s
-
(Locked)
Finding pods1m 38s
-
(Locked)
Creating a ConfigMap5m 31s
-
(Locked)
Using a sidecar4m 56s
-
(Locked)
Using probes1m 30s
-
(Locked)
Creating a deployment4m 48s
-
(Locked)
Exposing applications3m 24s
-
(Locked)
Managing NetworkPolicy4m 44s
-
(Locked)
Using storage5m 37s
-
(Locked)
Using Helm1m 36s
-
(Locked)
Managing resource restrictions2m 18s
-
(Locked)
Creating canary deployments5m 22s
-
(Locked)
Defining container restrictions4m 6s
-
(Locked)
Using a Dockerfile2m 26s
-
(Locked)
Using ServiceAccount2m 32s
-
(Locked)
-