Skip to content

Commit 4108d44

Browse files
committedJun 21, 2024
fix the solution to trigger a deployment on every helm upgrade
1 parent 76633fe commit 4108d44

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ helm install mywebapp-release webapp1/ --values webapp1/values.yaml
1616

1717
# Upgrade after templating
1818
```
19-
helm upgrade mywebapp-release webapp1/ --values mywebapp/values.yaml
19+
helm upgrade mywebapp-release webapp1/ --values webapp1/values.yaml
2020
```
2121

2222
# Accessing it

‎solution/webapp1/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.1.0
18+
version: 0.1.1
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

‎solution/webapp1/templates/deployment.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ spec:
1616
labels:
1717
app: {{ .Values.appName }}
1818
tier: frontend
19+
annotations:
20+
# To force pod recreation on every upgrade,
21+
# you can add annotations or checksums to the pod template that change on each upgrade.
22+
rollme: {{ randAlphaNum 5 | quote }}
23+
1924
spec: # Pod spec
2025
containers:
2126
- name: mycontainer

‎solution/webapp1/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace: default
99
configmap:
1010
name: myhelmapp-configmap-v1
1111
data:
12-
CUSTOM_HEADER: 'This app was deployed with helm!'
12+
CUSTOM_HEADER: 'Fixed the update issue with helm. This app was deployed with helm!'
1313

1414
image:
1515
name: devopsjourney1/mywebapp

0 commit comments

Comments
 (0)
Please sign in to comment.