1
0
forked from k-space/kube

authelia: Switch to KeyDB operator

This commit is contained in:
Lauri Võsandi 2022-08-28 11:12:19 +03:00
parent f78bb031b7
commit eec16a8fa2
3 changed files with 9 additions and 5 deletions

View File

@ -9,7 +9,7 @@ Samba resides outside Kubernetes cluster as it's difficuilt to containerize
while keeping it usable from outside the cluster due to Samba's networking.
The MariaDB instance is used to store MFA tokens.
Redis is used to store session info.
KeyDB is used to store session info.
## Deployment
@ -17,14 +17,12 @@ Redis is used to store session info.
Inspect changes with `git diff` and proceed to deploy:
```
kubectl apply -n authelia -f application.yml -f keydb.yml -f mariadb.yml
kubectl apply -n authelia -f application.yml
kubectl create secret generic -n authelia mysql-secrets \
--from-literal=rootPassword=$(cat /dev/urandom | base64 | head -c 30)
kubectl create secret generic -n authelia mariadb-secrets \
--from-literal=MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | base64 | head -c 30) \
--from-literal=MYSQL_PASSWORD=$(cat /dev/urandom | base64 | head -c 30)
kubectl create secret generic -n authelia redis-secrets \
--from-literal=REDIS_PASSWORD=$(cat /dev/urandom | base64 | head -c 30)
kubectl -n authelia rollout restart deployment/authelia
```

View File

@ -407,3 +407,10 @@ spec:
operator: Equal
value: storage
effect: NoSchedule
---
apiVersion: codemowers.io/v1alpha1
kind: KeyDBCluster
metadata:
name: redis
spec:
replicas: 3

View File

@ -1 +0,0 @@
../shared/keydb.yml