1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: grafana
- name: grafana
- namespace: monitoring
- spec:
- strategy:
- type: Recreate
- 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
|