Обновление деплоймента при каждом применении helm
This commit is contained in:
@@ -15,10 +15,10 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 1.0.0
|
version: 1.0.1
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "1.0.0"
|
appVersion: "1.0.1"
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ metadata:
|
|||||||
name: {{ .Release.Name }}-backend-deployment
|
name: {{ .Release.Name }}-backend-deployment
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-backend
|
app: {{ .Release.Name }}-backend
|
||||||
annotations:
|
|
||||||
redeploy-timestamp: "{{ now | unixEpoch }}"
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -15,6 +13,8 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: {{ .Release.Name }}-backend
|
app: {{ .Release.Name }}-backend
|
||||||
|
annotations:
|
||||||
|
redeploy-timestamp: "{{ now | unixEpoch }}"
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Release.Name }}-backend
|
- name: {{ .Release.Name }}-backend
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ metadata:
|
|||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
|
helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": pre-install
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
"helm.sh/hook-weight": "-1"
|
"helm.sh/hook-weight": "-1"
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||||
spec:
|
spec:
|
||||||
@@ -9,7 +9,7 @@ metadata:
|
|||||||
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
app.kubernetes.io/version: {{ .Chart.AppVersion }}
|
||||||
helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
|
helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
|
||||||
annotations:
|
annotations:
|
||||||
"helm.sh/hook": pre-install
|
"helm.sh/hook": "pre-install,pre-upgrade"
|
||||||
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
Reference in New Issue
Block a user