aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-15 18:33:44 +0100
committerGravatar Joe Banks <[email protected]>2024-04-15 18:33:44 +0100
commit9b4893d1c375d6597651fec5d2201f512181cf20 (patch)
tree319a5c24917858e528b18c75ad8312b32cc39727 /kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml
parentMove Prestashop to Prestashop namespace (diff)
Move Grafana to monitoring namespace
Diffstat (limited to 'kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml')
-rw-r--r--kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml53
1 files changed, 53 insertions, 0 deletions
diff --git a/kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml b/kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml
new file mode 100644
index 0000000..87e3059
--- /dev/null
+++ b/kubernetes/namespaces/monitoring/grafana/deployment-grafana.yaml
@@ -0,0 +1,53 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: grafana
+ namespace: monitoring
+spec:
+ replicas: 1
+ strategy:
+ type: Recreate
+ selector:
+ matchLabels:
+ app: grafana
+ template:
+ metadata:
+ labels:
+ app: grafana
+ spec:
+ containers:
+ - name: grafana
+ image: grafana/grafana:11.0.0-preview
+ 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
+ - mountPath: /tmp
+ name: grafana-tmp
+ securityContext:
+ readOnlyRootFilesystem: true
+ volumes:
+ - name: grafana-volume
+ persistentVolumeClaim:
+ claimName: grafana-storage
+ - name: grafana-tmp
+ emptyDir:
+ medium: Memory
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true