From 855209b8a5479f97c80e82be44fd770b6077ad57 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 23 Dec 2024 03:00:33 +0000 Subject: [PATCH] fix: config configmap too big --- manifests/bin/deploy.sh | 4 ++-- manifests/common/app.yaml | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/manifests/bin/deploy.sh b/manifests/bin/deploy.sh index c393499..7e79ebb 100755 --- a/manifests/bin/deploy.sh +++ b/manifests/bin/deploy.sh @@ -8,11 +8,11 @@ function kapply() { }; export -f kapply function kcreatesec() { - kubectl create secret generic --save-config --dry-run=client -oyaml "$@" | kubectl apply -f- + kubectl create secret generic --dry-run=client -oyaml "$@" | kubectl replace }; export -f kcreatesec function kcreatecm() { - kubectl create configmap --dry-run=client -oyaml "$@" | kubectl apply -f- + kubectl create configmap --dry-run=client -oyaml "$@" | kubectl replace }; export -f kcreatecm function kgseckey() { diff --git a/manifests/common/app.yaml b/manifests/common/app.yaml index ac555c6..0e76fcf 100644 --- a/manifests/common/app.yaml +++ b/manifests/common/app.yaml @@ -69,11 +69,7 @@ spec: name: searxng volumeMounts: - name: config - mountPath: /etc/searxng/limiter.toml - subPath: limiter.toml - - name: config - mountPath: /etc/searxng/settings.yml - subPath: settings.yml + mountPath: /etc/searxng/ volumes: - name: config configMap: