aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/namespaces/databases/redis/README.md
blob: 0e723af1f6271185b9d5cdf63a32914ee15a0393 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Python Discord Redis
This folder contains the configuration for Python Discord's Redis instance.

## Volume
A 10Gi volume is provisioned on the Linode Block Storage (Retain) storage class.

## Deployment
The deployment will pull the `redis:latest` image from DockerHub.

It will mount the created volume at `/data`.

It will expose port `6379` to connect to Redis.

## Service
A service called `redis` will be created to give the deployment a cluster local DNS record of `redis.databases.svc.cluster.local`.

## Databases

Redis provides 32 databases by default, which are 0-indexed. Current database usage is as follows:

0 - Python bot, Sir-Lancebot, Sir-Robin
1 - Forms Backend
3 - Pixels

## Secrets

Redis requires a `redis-credentials` secret with the following entries:

| Environment    | Description                           |
|----------------|---------------------------------------|
| REDIS_HOST     | The host redis is running on          |
| REDIS_PASSWORD | The password to connect to redis with |
| REDIS_PORT     | The port redis is listening on        |