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

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…

Contents