123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: grafana
- name: grafana
- namespace: monitoring
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: grafana
- template:
- metadata:
- labels:
- app: grafana
- spec:
- containers:
- - env: []
- image: grafana/grafana:latest
- name: grafana
- ports:
- - containerPort: 3000
- name: http
- readinessProbe:
- httpGet:
- path: /api/health
- port: http
- resources:
- limits:
- cpu: 200m
- memory: 200Mi
- requests:
- cpu: 100m
- memory: 100Mi
- volumeMounts:
- - mountPath: /var/lib/grafana
- name: grafana-storage
- readOnly: false
- securityContext:
- fsGroup: 65534
- runAsNonRoot: true
- runAsUser: 65534
- serviceAccountName: grafana
- volumes:
- - name: grafana-storage
- persistentVolumeClaim:
- claimName: grafana-pvc
|