aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-14 22:57:04 +0100
committerGravatar GitHub <[email protected]>2024-04-14 22:57:04 +0100
commitf726f859ad6076cb544f029f08b1b6b6a9590bcb (patch)
tree7f0367d372875a5deb425db4ab5bf995ac0aee11
parentVersion 2.5.1 (diff)
Move namespace to bots
-rw-r--r--deployment.yaml7
1 files changed, 7 insertions, 0 deletions
diff --git a/deployment.yaml b/deployment.yaml
index 2c2a8c7..e7e3266 100644
--- a/deployment.yaml
+++ b/deployment.yaml
@@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: metricity
+ namespace: bots
spec:
replicas: 1
selector:
@@ -12,6 +13,10 @@ spec:
labels:
app: metricity
spec:
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true
containers:
- name: metricity
image: ghcr.io/python-discord/metricity:latest
@@ -19,3 +24,5 @@ spec:
envFrom:
- secretRef:
name: metricity-env
+ securityContext:
+ readOnlyRootFilesystem: true