From 8a07b62de32da9680a100cb70e8004c3e67d2ebe Mon Sep 17 00:00:00 2001 From: Eric B <111573122+techtrd@users.noreply.github.com> Date: Sun, 19 Jan 2025 20:13:32 +0100 Subject: docs: Various Kubernetes deployment improvements (#862) * changed the secrets from configmap to secret object, create ingress instead of loadbalancer. Implemented the generation of a secret from the .env file and then put as environment variables into the deployments. Nextauth_URL is now set in the kustomization file and is then generated into a configmap and put as an env into the deployments. Opionated change: the web service is now a clusterIP Service and an ingress object is included. * changed the tls secret name in kustomize to a more example name * fixed image name in kustomization so the version tag gets replaced properly * tags are without v, otherwise we get an imagepullerror * removed unneccessary parts of the .env.sample * split env and secrets, added documentation, created sample ingress. changed the default from ingress back to Loadbalancer. Added Documentation on how to change to ingress and add TLS Support. split env to secret and env file which have to be configured before deploying. --- kubernetes/.secrets_sample | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 kubernetes/.secrets_sample (limited to 'kubernetes/.secrets_sample') diff --git a/kubernetes/.secrets_sample b/kubernetes/.secrets_sample new file mode 100644 index 00000000..f2421cd6 --- /dev/null +++ b/kubernetes/.secrets_sample @@ -0,0 +1,4 @@ +# Use `openssl rand -base64 36` to generate the random strings +NEXTAUTH_SECRET=generated_secret +MEILI_MASTER_KEY=generated_secret +NEXT_PUBLIC_SECRET="my-super-duper-secret-string" -- cgit v1.2.3-70-g09d2