authelia: Switch to KeyDB operator
This commit is contained in:
parent
f78bb031b7
commit
eec16a8fa2
@ -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.
|
while keeping it usable from outside the cluster due to Samba's networking.
|
||||||
|
|
||||||
The MariaDB instance is used to store MFA tokens.
|
The MariaDB instance is used to store MFA tokens.
|
||||||
Redis is used to store session info.
|
KeyDB is used to store session info.
|
||||||
|
|
||||||
|
|
||||||
## Deployment
|
## Deployment
|
||||||
@ -17,14 +17,12 @@ Redis is used to store session info.
|
|||||||
Inspect changes with `git diff` and proceed to deploy:
|
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 \
|
kubectl create secret generic -n authelia mysql-secrets \
|
||||||
--from-literal=rootPassword=$(cat /dev/urandom | base64 | head -c 30)
|
--from-literal=rootPassword=$(cat /dev/urandom | base64 | head -c 30)
|
||||||
kubectl create secret generic -n authelia mariadb-secrets \
|
kubectl create secret generic -n authelia mariadb-secrets \
|
||||||
--from-literal=MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | base64 | head -c 30) \
|
--from-literal=MYSQL_ROOT_PASSWORD=$(cat /dev/urandom | base64 | head -c 30) \
|
||||||
--from-literal=MYSQL_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
|
kubectl -n authelia rollout restart deployment/authelia
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -407,3 +407,10 @@ spec:
|
|||||||
operator: Equal
|
operator: Equal
|
||||||
value: storage
|
value: storage
|
||||||
effect: NoSchedule
|
effect: NoSchedule
|
||||||
|
---
|
||||||
|
apiVersion: codemowers.io/v1alpha1
|
||||||
|
kind: KeyDBCluster
|
||||||
|
metadata:
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
replicas: 3
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../shared/keydb.yml
|
|
Loading…
Reference in New Issue
Block a user