aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/sir-lancebot/deployment.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/namespaces/default/sir-lancebot/deployment.yaml')
-rw-r--r--kubernetes/namespaces/default/sir-lancebot/deployment.yaml51
1 files changed, 51 insertions, 0 deletions
diff --git a/kubernetes/namespaces/default/sir-lancebot/deployment.yaml b/kubernetes/namespaces/default/sir-lancebot/deployment.yaml
new file mode 100644
index 0000000..826af5b
--- /dev/null
+++ b/kubernetes/namespaces/default/sir-lancebot/deployment.yaml
@@ -0,0 +1,51 @@
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: sir-lancebot
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ app: sir-lancebot
+ template:
+ metadata:
+ labels:
+ app: sir-lancebot
+ spec:
+ containers:
+ - name: sir-lancebot
+ image: ghcr.io/python-discord/sir-lancebot:latest
+ imagePullPolicy: Always
+ resources:
+ requests:
+ cpu: 400m
+ memory: 100Mi
+ limits:
+ cpu: 500m
+ memory: 200Mi
+ envFrom:
+ - secretRef:
+ name: sir-lancebot-env
+ - secretRef:
+ name: redis-credentials
+ securityContext:
+ readOnlyRootFilesystem: true
+ volumeMounts:
+ - name: lancebot-data-vol
+ mountPath: /bot/bot/exts/fun/_latex_cache
+ - name: lancebot-logs-vol
+ mountPath: /bot/bot/log
+ - name: lancebot-tmp-vol
+ mountPath: /tmp
+ volumes:
+ - name: lancebot-data-vol
+ emptyDir: {}
+ - name: lancebot-logs-vol
+ emptyDir: {}
+ - name: lancebot-tmp-vol
+ emptyDir:
+ medium: Memory
+ securityContext:
+ fsGroup: 1000
+ runAsUser: 1000
+ runAsNonRoot: true