feat: simplify config configmap

This commit is contained in:
ange 2024-05-15 23:14:52 +02:00
parent 3df7adac25
commit fc2408fefa
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
2 changed files with 5 additions and 15 deletions

View File

@ -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

View File

@ -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