Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions kubernetes/namespaces/bots/bot/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ spec:
fsGroup: 2000
runAsUser: 1000
runAsNonRoot: true
serviceAccountName: bot
automountServiceAccountToken: false
containers:
- name: bot
image: ghcr.io/python-discord/bot:latest
Expand All @@ -40,10 +42,20 @@ spec:
name: logs-vol
- mountPath: /.cache/python-tldextract
name: tldextract-cache
- mountPath: /var/run/secrets/polonium-api
name: polonium-api-token
readOnly: true
securityContext:
readOnlyRootFilesystem: true
volumes:
- name: logs-vol
emptyDir: {}
- name: tldextract-cache
emptyDir: {}
- name: polonium-api-token
projected:
sources:
- serviceAccountToken:
path: token
audience: external-read
expirationSeconds: 600
5 changes: 5 additions & 0 deletions kubernetes/namespaces/bots/bot/service-account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: bot
namespace: bots
Binary file modified kubernetes/namespaces/modmail/secrets.yaml
Binary file not shown.
Loading