diff options
Diffstat (limited to 'kubernetes/namespaces/default/bot')
-rw-r--r-- | kubernetes/namespaces/default/bot/README.md | 15 | ||||
-rw-r--r-- | kubernetes/namespaces/default/bot/configmap.yaml | 9 | ||||
-rw-r--r-- | kubernetes/namespaces/default/bot/deployment.yaml | 48 | ||||
-rw-r--r-- | kubernetes/namespaces/default/bot/secrets.yaml | bin | 492 -> 0 bytes |
4 files changed, 0 insertions, 72 deletions
diff --git a/kubernetes/namespaces/default/bot/README.md b/kubernetes/namespaces/default/bot/README.md deleted file mode 100644 index 565cf70..0000000 --- a/kubernetes/namespaces/default/bot/README.md +++ /dev/null @@ -1,15 +0,0 @@ -## Bot - -Deployment file for @Python, our valiant community bot and workhorse. - -## Secrets -This deployment expects a number of secrets and environment variables to exist in a secret called `bot-env`. - -| Environment | Description | -|-------------------|-------------------------------------------------------------| -| API_KEYS_GITHUB | An API key for Github's API. | -| API_KEYS_SITE_API | The token to access our site's API. | -| BOT_SENTRY_DSN | The sentry DSN to send sentry events to. | -| BOT_TOKEN | The Discord bot token to run the bot on. | -| METABASE_PASSWORD | Password for Metabase | -| METABASE_USERNAME | Username for Metabase | diff --git a/kubernetes/namespaces/default/bot/configmap.yaml b/kubernetes/namespaces/default/bot/configmap.yaml deleted file mode 100644 index f6bf02e..0000000 --- a/kubernetes/namespaces/default/bot/configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: bot-config-env -data: - BOT_TRACE_LOGGERS: bot.utils.scheduling.ModPingsOnOff,bot.exts.moderation.modpings,bot.exts.backend.sync._syncers - DEBUG: 'False' - DUCK_POND_EXTRA_CHANNEL_BLACKLIST: "[291284109232308226,463035241142026251,463035268514185226]" # The 3 off-topic channels - URLS_PASTE_URL: https://paste.pythondiscord.com diff --git a/kubernetes/namespaces/default/bot/deployment.yaml b/kubernetes/namespaces/default/bot/deployment.yaml deleted file mode 100644 index 8f274f7..0000000 --- a/kubernetes/namespaces/default/bot/deployment.yaml +++ /dev/null @@ -1,48 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: bot -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: {} diff --git a/kubernetes/namespaces/default/bot/secrets.yaml b/kubernetes/namespaces/default/bot/secrets.yaml Binary files differdeleted file mode 100644 index 339d44a..0000000 --- a/kubernetes/namespaces/default/bot/secrets.yaml +++ /dev/null |