From fc2408fefaf4e15bc0569cb2c00c9bdf03097714 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 15 May 2024 23:14:52 +0200 Subject: [PATCH] feat: simplify config configmap --- manifests/bin/deploy.sh | 3 +-- manifests/common/app.yaml | 17 ++++------------- 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index 9d3e7be..87b0960 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -34,8 +34,7 @@ function kgcmkey() { kcreatesec searxng-secrets \ --from-literal=SEARXNG_SECRET="$(kgseckey searxng-secrets SEARXNG_SECRET || openssl rand -hex 32)" -kcreatecm searxng-settings --from-file=settings.yml -kcreatecm searxng-limiter --from-file=limiter.toml +kcreatecm searxng --from-file=settings.yml --from-file=limiter.toml kapply common/redis.yaml common/app.yaml diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index b32fdfa..9eced47 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -70,18 +70,9 @@ spec: - secretRef: name: searxng-secrets volumeMounts: - - name: limiter - mountPath: /etc/searxng/limiter.toml - subPath: limiter.toml - readOnly: true - - name: settings - mountPath: /etc/searxng/settings.yml - subPath: settings.yml - readOnly: true + - name: config + mountPath: /etc/searxng/ volumes: - - name: settings + - name: config configMap: - name: searxng-settings - - name: limiter - configMap: - name: searxng-limiter + name: searxng