From the course: Kubernetes: Your First Project (2021)
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Templatizing a Deployment - Kubernetes Tutorial
From the course: Kubernetes: Your First Project (2021)
Templatizing a Deployment
- Now that we know more about helm chart, metadata and creating helm values. Let's turn our Kubernetes manifests into helm chart templates. First, we're going to create a new directory inside a chart card template. So I'm going to use MKDIR to do this, and we're going to create it inside of charts and templates. Next I'm going to open my deployment.yaml file from earlier. I'm also going to keep my values file on the side, just so that I can reference them more easily. So chart values, there we go. Since helm inserts, helm values into template areas directly. First, I'm going to replace all instances of explore california.com with the following open brace, open brace values, dot app name, close brace, close brace. So that's two curly braces in the beginning and two curly braces at the end, and just like that, all of them were replaced. Very, very simple. Next, I'm going to replace the image on line 19. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
What is Helm?4m 25s
-
(Locked)
Creating our Chart metadata3m 56s
-
(Locked)
Creating our Chart values1m 43s
-
(Locked)
Templatizing a Deployment6m 35s
-
(Locked)
Deploying our Helm Chart with make3m 18s
-
(Locked)
Challenge: Change the port number32s
-
(Locked)
Solution: Change the port number3m 33s
-
(Locked)
-
-