From f94c8908468a7299882b865b715dcb27c72b03b5 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Thu, 6 Jun 2024 01:01:33 +0100 Subject: Add Metricity manifest Copies the Metricity deployment manifest from the Metricity repo. --- .../namespaces/bots/metricity/deployment.yaml | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 kubernetes/namespaces/bots/metricity/deployment.yaml (limited to 'kubernetes') diff --git a/kubernetes/namespaces/bots/metricity/deployment.yaml b/kubernetes/namespaces/bots/metricity/deployment.yaml new file mode 100644 index 0000000..15194a5 --- /dev/null +++ b/kubernetes/namespaces/bots/metricity/deployment.yaml @@ -0,0 +1,30 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: metricity + namespace: bots +spec: + replicas: 1 + strategy: + type: Recreate + selector: + matchLabels: + app: metricity + template: + metadata: + labels: + app: metricity + spec: + securityContext: + fsGroup: 2000 + runAsUser: 1000 + runAsNonRoot: true + containers: + - name: metricity + image: ghcr.io/python-discord/metricity:latest + imagePullPolicy: "Always" + envFrom: + - secretRef: + name: metricity-env + securityContext: + readOnlyRootFilesystem: true -- cgit v1.2.3