Files
grafana/helm/templates/deploy.yaml
ducoterra d729f6c6ba Update deploy with rollme and imagepullpolicy
Add random annotation and imagePullPolicy Always to ensure helm upgrade
always pulls a new image.
2021-05-04 13:00:44 -04:00

39 lines
852 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: grafana
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ .Release.Name }}
annotations:
rollme: {{ randAlphaNum 5 | quote }}
spec:
containers:
- name: {{ .Release.Name }}
image: grafana/grafana:latest
env:
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "false"
resources:
requests:
memory: 1Gi
cpu: 1m
limits:
memory: 1Gi
cpu: '1'
ports:
- containerPort: 3000
volumeMounts:
- mountPath: /var/lib/grafana
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ .Release.Name }}