From eec16a8fa263c59925e99087594580ec6ca306b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Sun, 28 Aug 2022 11:12:19 +0300 Subject: [PATCH] authelia: Switch to KeyDB operator --- authelia/README.md | 6 ++---- authelia/application.yml | 7 +++++++ authelia/keydb.yml | 1 - 3 files changed, 9 insertions(+), 5 deletions(-) delete mode 120000 authelia/keydb.yml 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