aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/bots/bot/deployment.yaml
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-04-14 23:12:48 +0100
committerGravatar Joe Banks <[email protected]>2024-04-14 23:12:48 +0100
commit85afb3b8ca98db360c863cc56af18c411c6489e2 (patch)
treec5adcf0fe35eeebc1eaaf0a20c44656ed36b018b /kubernetes/namespaces/bots/bot/deployment.yaml
parentConfigure Ansible for user authentication (#213) (diff)
Move all bots to designated namespaces
Diffstat (limited to 'kubernetes/namespaces/bots/bot/deployment.yaml')
-rw-r--r--kubernetes/namespaces/bots/bot/deployment.yaml49
1 files changed, 49 insertions, 0 deletions
diff --git a/kubernetes/namespaces/bots/bot/deployment.yaml b/kubernetes/namespaces/bots/bot/deployment.yaml
new file mode 100644
index 0000000..033c2b9
--- /dev/null
+++ b/kubernetes/namespaces/bots/bot/deployment.yaml
@@ -0,0 +1,49 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: bot
+ namespace: bots
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: bot
+ template:
+ metadata:
+ labels:
+ app: bot
+ spec:
+ securityContext:
+ fsGroup: 2000
+ runAsUser: 1000
+ runAsNonRoot: true
+ containers:
+ - name: bot
+ image: ghcr.io/python-discord/bot:latest
+ imagePullPolicy: Always
+ resources:
+ requests:
+ cpu: 750m
+ memory: 600Mi
+ limits:
+ cpu: 1000m
+ memory: 1400Mi
+ envFrom:
+ - secretRef:
+ name: bot-env
+ - secretRef:
+ name: redis-credentials
+ - configMapRef:
+ name: bot-config-env
+ volumeMounts:
+ - mountPath: /bot/logs
+ name: logs-vol
+ - mountPath: /.cache/python-tldextract
+ name: tldextract-cache
+ securityContext:
+ readOnlyRootFilesystem: true
+ volumes:
+ - name: logs-vol
+ emptyDir: {}
+ - name: tldextract-cache
+ emptyDir: {}