[blocky] Add checksum annotation to force pod to restart on config change (#205)

* remove double ports

Signed-off-by: Gavin Mogan <git@gavinmogan.com>

* Add an annotation to force k8s to restart pod on config file changes

Signed-off-by: Gavin Mogan <git@gavinmogan.com>

* bump chart version

Signed-off-by: Gavin Mogan <git@gavinmogan.com>
This commit is contained in:
Gavin Mogan 2020-04-17 14:08:21 -07:00 committed by GitHub
parent f3e99ffb70
commit 01f453d3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "v0.6" appVersion: "v0.6"
description: DNS proxy as ad-blocker for local network description: DNS proxy as ad-blocker for local network
name: blocky name: blocky
version: 3.0.0 version: 3.0.1
keywords: keywords:
- blocky - blocky
- dbs - dbs

View File

@ -19,8 +19,9 @@ spec:
labels: labels:
app.kubernetes.io/name: {{ include "blocky.name" . }} app.kubernetes.io/name: {{ include "blocky.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.podAnnotations }}
annotations: annotations:
checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{ toYaml . | nindent 8 }} {{ toYaml . | nindent 8 }}
{{- end }} {{- end }}
spec: spec:
@ -38,7 +39,6 @@ spec:
mountPath: /app/config.yml mountPath: /app/config.yml
subPath: config.yml subPath: config.yml
readOnly: true readOnly: true
ports:
ports: ports:
- name: api - name: api
containerPort: 4000 containerPort: 4000