k8s chart + values tweak: (#317)

- mongo chart to avoid requiring username/password if passing db_url
- tweaks to default values (set registration enabled by default, longer) add missing options
This commit is contained in:
Ilya Kreymer 2022-09-21 12:45:08 -07:00 committed by GitHub
parent 2ebd1eb2f6
commit 447b0bf9b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 10 deletions

View File

@ -10,8 +10,8 @@ metadata:
type: Opaque
stringData:
MONGO_INITDB_ROOT_USERNAME: {{ .Values.mongo_auth.username | quote }}
MONGO_INITDB_ROOT_PASSWORD: {{ .Values.mongo_auth.password | quote }}
MONGO_INITDB_ROOT_USERNAME: "{{ .Values.mongo_auth.username }}"
MONGO_INITDB_ROOT_PASSWORD: "{{ .Values.mongo_auth.password }}"
MONGO_HOST: "{{ .Values.mongo_host }}"
MONGO_DB_URL: "{{ .Values.mongo_auth.db_url }}"
@ -24,8 +24,8 @@ metadata:
type: Opaque
stringData:
MONGO_INITDB_ROOT_USERNAME: {{ .Values.mongo_auth.username | quote }}
MONGO_INITDB_ROOT_PASSWORD: {{ .Values.mongo_auth.password | quote }}
MONGO_INITDB_ROOT_USERNAME: "{{ .Values.mongo_auth.username }}"
MONGO_INITDB_ROOT_PASSWORD: "{{ .Values.mongo_auth.password }}"
MONGO_HOST: "{{ .Values.mongo_host }}"
MONGO_DB_URL: "{{ .Values.mongo_auth.db_url }}"

View File

@ -12,8 +12,8 @@ volume_storage_class:
# if set, set the node selector 'nodeType' to this crawling pods
# crawler_node_type:
registration_enabled: 1
jwt_token_lifetime_minutes: 60
registration_enabled: 0
jwt_token_lifetime_minutes: 1440
# number of workers for backend api
backend_workers: 4
@ -77,8 +77,12 @@ mongo_limits_memory: "512Mi"
mongo_auth:
username: root
password: example
# specify either username + password (for local mongo)
# username: root
# password: example
# or full URL (for remote mongo server)
# db_url: mongodb+srv://...
# Redis Image
@ -122,10 +126,17 @@ crawler_limits_cpu: "1200m"
crawler_requests_memory: "512Mi"
crawler_limits_memory: "768Mi"
crawler_requests_hd: "220Gi"
crawler_requests_storage: "220Gi"
crawler_liveness_port: 6065
# time to wait for graceful stop
grace_period: 1000
# debug
no_delete_jobs: 1
no_delete_jobs: 0
# Local Minio Pod (optional)