diff options
author | 2024-04-14 23:12:48 +0100 | |
---|---|---|
committer | 2024-04-14 23:12:48 +0100 | |
commit | 85afb3b8ca98db360c863cc56af18c411c6489e2 (patch) | |
tree | c5adcf0fe35eeebc1eaaf0a20c44656ed36b018b /kubernetes/namespaces/modmail/bot | |
parent | Configure Ansible for user authentication (#213) (diff) |
Move all bots to designated namespaces
Diffstat (limited to 'kubernetes/namespaces/modmail/bot')
-rw-r--r-- | kubernetes/namespaces/modmail/bot/README.md | 7 | ||||
-rw-r--r-- | kubernetes/namespaces/modmail/bot/deployment.yaml | 51 |
2 files changed, 58 insertions, 0 deletions
diff --git a/kubernetes/namespaces/modmail/bot/README.md b/kubernetes/namespaces/modmail/bot/README.md new file mode 100644 index 0000000..ac29ac2 --- /dev/null +++ b/kubernetes/namespaces/modmail/bot/README.md @@ -0,0 +1,7 @@ +# Modmail bot +These manifests will provision the resources for an instance of our Modmail bot. + +To deploy this bot simply run: +``` +kubectl apply -f deployment.yaml +``` diff --git a/kubernetes/namespaces/modmail/bot/deployment.yaml b/kubernetes/namespaces/modmail/bot/deployment.yaml new file mode 100644 index 0000000..6084927 --- /dev/null +++ b/kubernetes/namespaces/modmail/bot/deployment.yaml @@ -0,0 +1,51 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: modmail-bot + namespace: modmail +spec: + replicas: 1 + selector: + matchLabels: + app: modmail-bot + template: + metadata: + labels: + app: modmail-bot + spec: + containers: + - name: modmail-bot + image: ghcr.io/python-discord/modmail:latest + resources: + requests: + cpu: 75m + memory: 500Mi + limits: + cpu: 125m + memory: 750Mi + imagePullPolicy: "Always" + volumeMounts: + - mountPath: /modmailbot/plugins + name: plugins-vol + - mountPath: /modmailbot/temp + name: temp-vol + env: + - name: TMPDIR + value: /modmailbot/temp + envFrom: + - secretRef: + name: modmail + - configMapRef: + name: modmail-config-env + securityContext: + readOnlyRootFilesystem: true + volumes: + - name: plugins-vol + emptyDir: {} + - name: temp-vol + emptyDir: + medium: Memory + securityContext: + fsGroup: 2000 + runAsUser: 1000 + runAsNonRoot: true |