diff --git a/authelia/README.md b/authelia/README.md index 5ff754a..d9796ec 100644 --- a/authelia/README.md +++ b/authelia/README.md @@ -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 ``` diff --git a/authelia/application.yml b/authelia/application.yml index bb9bdbb..e1c2019 100644 --- a/authelia/application.yml +++ b/authelia/application.yml @@ -407,3 +407,10 @@ spec: operator: Equal value: storage effect: NoSchedule +--- +apiVersion: codemowers.io/v1alpha1 +kind: KeyDBCluster +metadata: + name: redis +spec: + replicas: 3 diff --git a/authelia/keydb.yml b/authelia/keydb.yml deleted file mode 120000 index e952bf2..0000000 --- a/authelia/keydb.yml +++ /dev/null @@ -1 +0,0 @@ -../shared/keydb.yml \ No newline at end of file