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

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