aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/bots
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-06 01:01:33 +0100
committerGravatar jchristgit <[email protected]>2024-06-06 16:06:58 +0000
commitf94c8908468a7299882b865b715dcb27c72b03b5 (patch)
tree7219bd136a5dd3d5b2668a1648ce34093ac315d4 /kubernetes/namespaces/bots
parentAdd myself to CODEOWNERS (diff)
Add Metricity manifest
Copies the Metricity deployment manifest from the Metricity repo.
Diffstat (limited to 'kubernetes/namespaces/bots')
-rw-r--r--kubernetes/namespaces/bots/metricity/deployment.yaml30
1 files changed, 30 insertions, 0 deletions
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