mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
helm wip
This commit is contained in:
parent
5e0e4a52bc
commit
63cf075fd7
@ -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
|
||||
```
|
@ -5,6 +5,6 @@ metadata:
|
||||
data:
|
||||
config.json: |
|
||||
{
|
||||
"environment" : "prod-1"
|
||||
"environment" : "dev"
|
||||
}
|
||||
# kubectl create configmap example-config --from-file ./golang/configs/config.json
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user