apiVersion: apps/v1 kind: Deployment metadata: name: grafana spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: grafana template: metadata: labels: app: grafana spec: containers: - name: grafana # Do not bump to 10.2.X due to issue below., Wait for 10.3.X # https://github.com/grafana/grafana/issues/77082 image: grafana/grafana:10.1.5 imagePullPolicy: Always ports: - containerPort: 3000 resources: requests: cpu: 200m memory: 100Mi limits: cpu: 300m memory: 250Mi envFrom: - configMapRef: name: grafana-default - secretRef: name: grafana-secret-env volumeMounts: - mountPath: /var/lib/grafana name: grafana-volume securityContext: readOnlyRootFilesystem: true volumes: - name: grafana-volume persistentVolumeClaim: claimName: grafana-storage securityContext: fsGroup: 2000 runAsUser: 1000 runAsNonRoot: true