feat: simplify config configmap
This commit is contained in:
parent
3df7adac25
commit
fc2408fefa
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user