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 8 solution: Installing a microservice with Kustomize - Kubernetes Tutorial
From the course: Kubernetes Step-by-Step by Pearson
Lab 8 solution: Installing a microservice with Kustomize
So if you had a hard time doing this lab, I would recommend to check the lab 8 directory in the course Git repository, where you will find the required components. So it starts with the kustomization.yaml and in the kustomization.yaml you can see the secret generator as well as the ConfigMap generator and it is calling the resources MySQL Deployment and WordPress Deployment. Of course, these files need to be created. I would use kubectl create deploy with the minus minus dry run is client minus O YAML option to generate them dynamically. The result would be something like what you see here. So this is the WordPress Deployment that contains everything that you might want to have in this deployment. And next, how are you going to run it? Well, you are going to use kubectl apply-k to apply the current kustomization.yaml. And that is going to create all the resources for you. Notice, by the way, that in my resources, I'm including persistent volumes and services as well. I didn't ask for…
Contents
-
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives28s
-
(Locked)
What is a microservice?2m 14s
-
(Locked)
Installing microservices using YAML52s
-
(Locked)
Using Helm13m 34s
-
(Locked)
Using Kustomize3m 48s
-
(Locked)
Lesson 8 lab: Installing a microservice with Kustomize57s
-
(Locked)
Lab 8 solution: Installing a microservice with Kustomize2m 10s
-
(Locked)
-
-