aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/default/bot
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2024-01-08 14:58:05 +0000
committerGravatar Chris Lovering <[email protected]>2024-01-31 14:00:10 +0000
commitd7472f7f775b195ddd55d7a953ce79ba9e14803e (patch)
tree2fc376f929f3f390e67a429841ba598470af0fb7 /kubernetes/namespaces/default/bot
parentBump dorny/paths-filter from 2 to 3 (#177) (diff)
Move non-secret secrets from secrets.yaml files to config maps
Diffstat (limited to 'kubernetes/namespaces/default/bot')
-rw-r--r--kubernetes/namespaces/default/bot/README.md3
-rw-r--r--kubernetes/namespaces/default/bot/configmap.yaml8
-rw-r--r--kubernetes/namespaces/default/bot/deployment.yaml2
-rw-r--r--kubernetes/namespaces/default/bot/secrets.yamlbin675 -> 492 bytes
4 files changed, 10 insertions, 3 deletions
diff --git a/kubernetes/namespaces/default/bot/README.md b/kubernetes/namespaces/default/bot/README.md
index 6a992b5..565cf70 100644
--- a/kubernetes/namespaces/default/bot/README.md
+++ b/kubernetes/namespaces/default/bot/README.md
@@ -11,8 +11,5 @@ This deployment expects a number of secrets and environment variables to exist i
| 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. |
-| BOT_TRACE_LOGGERS | Comma separated list of loggers to enable trace logging for |
-| DEBUG | Debug mode true/false |
| METABASE_PASSWORD | Password for Metabase |
| METABASE_USERNAME | Username for Metabase |
-| URLS_PASTE_URL | The URL to the paste site |
diff --git a/kubernetes/namespaces/default/bot/configmap.yaml b/kubernetes/namespaces/default/bot/configmap.yaml
new file mode 100644
index 0000000..2459763
--- /dev/null
+++ b/kubernetes/namespaces/default/bot/configmap.yaml
@@ -0,0 +1,8 @@
+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'
+ URLS_PASTE_URL: https://paste.pythondiscord.com
diff --git a/kubernetes/namespaces/default/bot/deployment.yaml b/kubernetes/namespaces/default/bot/deployment.yaml
index e05b2ec..8f274f7 100644
--- a/kubernetes/namespaces/default/bot/deployment.yaml
+++ b/kubernetes/namespaces/default/bot/deployment.yaml
@@ -32,6 +32,8 @@ spec:
name: bot-env
- secretRef:
name: redis-credentials
+ - configMapRef:
+ name: bot-config-env
volumeMounts:
- mountPath: /bot/logs
name: logs-vol
diff --git a/kubernetes/namespaces/default/bot/secrets.yaml b/kubernetes/namespaces/default/bot/secrets.yaml
index c48842e..339d44a 100644
--- a/kubernetes/namespaces/default/bot/secrets.yaml
+++ b/kubernetes/namespaces/default/bot/secrets.yaml
Binary files differ