This commit is contained in:
marcel-dempers 2020-11-10 18:40:23 +11:00 committed by Marcel Dempers
parent 5e0e4a52bc
commit 63cf075fd7
6 changed files with 16 additions and 14 deletions

View File

@ -47,6 +47,8 @@ chmod +x /usr/local/bin/helm
## Create our first Chart
For reference in the rest of the guide, I have left my full templates in: <br/>
`<GitRepo>/kubernetes/helm/example-app`
```
cd kubernetes/helm
@ -157,7 +159,7 @@ spec:
# rollout the change
helm upgrade example-app example-app --values ./example-app/example-app.values.yaml
helm upgrade example-app example-app --values ./example-app/example-app-01.values.yaml
```
## If\Else and Default values
@ -199,5 +201,5 @@ This may help you keep the `values.yaml` file small <br/>
# rollout the change
helm upgrade example-app example-app --values ./example-app/example-app.values.yaml
helm upgrade example-app example-app --values ./example-app/example-app-01.values.yaml
```

View File

@ -5,6 +5,6 @@ metadata:
data:
config.json: |
{
"environment" : "prod-1"
"environment" : "dev"
}
# kubectl create configmap example-config --from-file ./golang/configs/config.json

View File

@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: "{{ .Values.name }}"
image: "{{ .Values.deployment.image }}:{{ .Values.deployment.tag }}"
image: {{ .Values.deployment.image }}:{{ .Values.deployment.tag }}
imagePullPolicy: Always
ports:
- containerPort: 5000