From the course: Automating Kubernetes with GitOps
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Preparation: Creating the YAML files - Kubernetes Tutorial
From the course: Automating Kubernetes with GitOps
Preparation: Creating the YAML files
- All right, at this point there is just one more step to go before we can take care of the GitHubs operator, and that is the creation of the YAML files. So in order to deploy our Kubernetes application, we need to store YAML files in the Git repository, and that's what we are going to take care of now. I'm going to generate the YAML files and after generating the YAML files, we are going to activate the GitHubs operator. This is a procedure that consists of two steps. I have two different slides. It's a little bit of a lengthy procedure, but it's an important procedure. Please make sure you verify everything, because if you make errors here, you are going to suffer later. So to start with, I need namespace, kubectl create ns preprod. And likewise, kubectl create ns prod So we have the production and the pre-production namespace. Next, we have the preprod pvc, and the preprod pvc needs to be copied into the preprod Git directory. So cp preprod-pvc.yaml to ~/preprod. So now we go into…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives49s
-
(Locked)
Understanding the project4m 44s
-
(Locked)
Preparation: Setting up Git5m 49s
-
(Locked)
Preparation: Creating a worker image7m 28s
-
(Locked)
Preparation: Setting up storage4m 39s
-
(Locked)
Preparation: Creating the YAML files14m 48s
-
(Locked)
Implementing the CI process10m 15s
-
(Locked)
Implementing the CD process2m 56s
-
(Locked)
Performing the blue/green application update45s
-
(Locked)
-
-
-
-