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/meilisearch-deployment.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kubernetes/meilisearch-deployment.yaml') diff --git a/kubernetes/meilisearch-deployment.yaml b/kubernetes/meilisearch-deployment.yaml index d91c7d96..31979bbf 100644 --- a/kubernetes/meilisearch-deployment.yaml +++ b/kubernetes/meilisearch-deployment.yaml @@ -22,8 +22,10 @@ spec: - mountPath: /meili_data name: meilisearch envFrom: + - secretRef: + name: hoarder-secrets - configMapRef: - name: hoarder-env + name: hoarder-configuration volumes: - name: meilisearch persistentVolumeClaim: -- cgit v1.2.3-70-g09d2