From 01f453d3d2f0d2040fcc7c27992052651f1eb893 Mon Sep 17 00:00:00 2001 From: Gavin Mogan Date: Fri, 17 Apr 2020 14:08:21 -0700 Subject: [PATCH] [blocky] Add checksum annotation to force pod to restart on config change (#205) * remove double ports Signed-off-by: Gavin Mogan * Add an annotation to force k8s to restart pod on config file changes Signed-off-by: Gavin Mogan * bump chart version Signed-off-by: Gavin Mogan --- charts/blocky/Chart.yaml | 2 +- charts/blocky/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/blocky/Chart.yaml b/charts/blocky/Chart.yaml index 6137a147..e7a4c5a8 100644 --- a/charts/blocky/Chart.yaml +++ b/charts/blocky/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "v0.6" description: DNS proxy as ad-blocker for local network name: blocky -version: 3.0.0 +version: 3.0.1 keywords: - blocky - dbs diff --git a/charts/blocky/templates/deployment.yaml b/charts/blocky/templates/deployment.yaml index 0bc32207..3da6828f 100644 --- a/charts/blocky/templates/deployment.yaml +++ b/charts/blocky/templates/deployment.yaml @@ -19,8 +19,9 @@ spec: labels: app.kubernetes.io/name: {{ include "blocky.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} - {{- with .Values.podAnnotations }} annotations: + checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} + {{- with .Values.podAnnotations }} {{ toYaml . | nindent 8 }} {{- end }} spec: @@ -38,7 +39,6 @@ spec: mountPath: /app/config.yml subPath: config.yml readOnly: true - ports: ports: - name: api containerPort: 4000