diff options
Diffstat (limited to 'kubernetes/namespaces/default/modmail')
-rw-r--r-- | kubernetes/namespaces/default/modmail/README.md | 7 | ||||
-rw-r--r-- | kubernetes/namespaces/default/modmail/bot/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/namespaces/default/modmail/configmap.yaml | 12 | ||||
-rw-r--r-- | kubernetes/namespaces/default/modmail/secrets.yaml | bin | 558 -> 299 bytes | |||
-rw-r--r-- | kubernetes/namespaces/default/modmail/web/deployment.yaml | 2 |
5 files changed, 16 insertions, 7 deletions
diff --git a/kubernetes/namespaces/default/modmail/README.md b/kubernetes/namespaces/default/modmail/README.md index 92ac16b..b78857b 100644 --- a/kubernetes/namespaces/default/modmail/README.md +++ b/kubernetes/namespaces/default/modmail/README.md @@ -9,11 +9,4 @@ The services require one shared secret called `modmail` containing the following | Key | Value | Description | | ------------------------| ---------------------------------|--------------------------------------------------------------| | `CONNECTION_URI` | MongoDB connection URI | Used for storing data | -| `DATABASE_TYPE` | `mongodb` | The type of database to use, only supports mongodb right now | -| `DATA_COLLECTION` | `False` | Disable bot metadata collection by modmail devs | -| `DISABLE_AUTOUPDATES` | `yes` | Auto-updates breaks in production | -| `GUILD_ID` | Snowflake of Discord guild | Guild to respond to commands in | -| `LOG_URL` | URL of the web portal | Used for generating links on the bot | -| `OWNERS` | Comma separated list of user IDs | Used for granting high permissions on the bot | -| `REGISTRY_PLUGINS_ONLY` | `false` | Allows the usage of plugins outside of the official registry | | `TOKEN` | Discord Token | Used to connect to Discord | diff --git a/kubernetes/namespaces/default/modmail/bot/deployment.yaml b/kubernetes/namespaces/default/modmail/bot/deployment.yaml index e640fdc..b54fd2a 100644 --- a/kubernetes/namespaces/default/modmail/bot/deployment.yaml +++ b/kubernetes/namespaces/default/modmail/bot/deployment.yaml @@ -34,6 +34,8 @@ spec: envFrom: - secretRef: name: modmail + - configMapRef: + name: modmail-config-env securityContext: readOnlyRootFilesystem: true volumes: diff --git a/kubernetes/namespaces/default/modmail/configmap.yaml b/kubernetes/namespaces/default/modmail/configmap.yaml new file mode 100644 index 0000000..30e417a --- /dev/null +++ b/kubernetes/namespaces/default/modmail/configmap.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: modmail-config-env +data: + DATABASE_TYPE: 'mongodb' # The type of database to use, only supports mongodb right now + DATA_COLLECTION: 'false' # Disable bot metadata collection by modmail devs + DISABLE_AUTOUPDATES: 'yes' + GUILD_ID: '267624335836053506' + LOG_URL: https://modmail.pythondiscord.com/ + OWNERS: 165023948638126080,95872159741644800,336843820513755157 + REGISTRY_PLUGINS_ONLY: 'false' # Allow the usage of plugins outside of the official registry diff --git a/kubernetes/namespaces/default/modmail/secrets.yaml b/kubernetes/namespaces/default/modmail/secrets.yaml Binary files differindex f2d5d5d..5fda68c 100644 --- a/kubernetes/namespaces/default/modmail/secrets.yaml +++ b/kubernetes/namespaces/default/modmail/secrets.yaml diff --git a/kubernetes/namespaces/default/modmail/web/deployment.yaml b/kubernetes/namespaces/default/modmail/web/deployment.yaml index 1070e22..74ae535 100644 --- a/kubernetes/namespaces/default/modmail/web/deployment.yaml +++ b/kubernetes/namespaces/default/modmail/web/deployment.yaml @@ -28,6 +28,8 @@ spec: envFrom: - secretRef: name: modmail + - configMapRef: + name: modmail-config-env securityContext: readOnlyRootFilesystem: true securityContext: |