feat: simplify config configmap
This commit is contained in:
parent
3df7adac25
commit
fc2408fefa
@ -34,8 +34,7 @@ function kgcmkey() {
|
|||||||
kcreatesec searxng-secrets \
|
kcreatesec searxng-secrets \
|
||||||
--from-literal=SEARXNG_SECRET="$(kgseckey searxng-secrets SEARXNG_SECRET || openssl rand -hex 32)"
|
--from-literal=SEARXNG_SECRET="$(kgseckey searxng-secrets SEARXNG_SECRET || openssl rand -hex 32)"
|
||||||
|
|
||||||
kcreatecm searxng-settings --from-file=settings.yml
|
kcreatecm searxng --from-file=settings.yml --from-file=limiter.toml
|
||||||
kcreatecm searxng-limiter --from-file=limiter.toml
|
|
||||||
|
|
||||||
kapply common/redis.yaml common/app.yaml
|
kapply common/redis.yaml common/app.yaml
|
||||||
|
|
||||||
|
@ -70,18 +70,9 @@ spec:
|
|||||||
- secretRef:
|
- secretRef:
|
||||||
name: searxng-secrets
|
name: searxng-secrets
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: limiter
|
- name: config
|
||||||
mountPath: /etc/searxng/limiter.toml
|
mountPath: /etc/searxng/
|
||||||
subPath: limiter.toml
|
|
||||||
readOnly: true
|
|
||||||
- name: settings
|
|
||||||
mountPath: /etc/searxng/settings.yml
|
|
||||||
subPath: settings.yml
|
|
||||||
readOnly: true
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: settings
|
- name: config
|
||||||
configMap:
|
configMap:
|
||||||
name: searxng-settings
|
name: searxng
|
||||||
- name: limiter
|
|
||||||
configMap:
|
|
||||||
name: searxng-limiter
|
|
||||||
|
Loading…
Reference in New Issue
Block a user