From d729f6c6ba2104dd9b56466a0625bff3196f4468 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Tue, 4 May 2021 13:00:44 -0400 Subject: [PATCH] Update deploy with rollme and imagepullpolicy Add random annotation and imagePullPolicy Always to ensure helm upgrade always pulls a new image. --- helm/templates/deploy.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/helm/templates/deploy.yaml b/helm/templates/deploy.yaml index 85a7bfa..bf7a996 100644 --- a/helm/templates/deploy.yaml +++ b/helm/templates/deploy.yaml @@ -11,17 +11,19 @@ spec: metadata: labels: app: {{ .Release.Name }} + annotations: + rollme: {{ randAlphaNum 5 | quote }} spec: containers: - name: {{ .Release.Name }} - image: grafana/grafana:7.3.7 + image: grafana/grafana:latest env: - name: GF_AUTH_ANONYMOUS_ENABLED value: "false" resources: requests: - memory: 256Mi - cpu: 100m + memory: 1Gi + cpu: 1m limits: memory: 1Gi cpu: '1' @@ -33,4 +35,4 @@ spec: volumes: - name: data persistentVolumeClaim: - claimName: {{ .Release.Name }} \ No newline at end of file + claimName: {{ .Release.Name }}