Commit 7897c337 by Guangbo Chen

fixed mongodb auth key issue and update values

parent 88c9db61
......@@ -52,7 +52,7 @@ questions:
required: true
group: "MongoDB Settings"
- variable: auth.enabled
default: "false"
default: true
description: "If true, keyfile access control is enabled"
type: boolean
label: Enable Auth
......@@ -61,7 +61,7 @@ questions:
group: "MongoDB Settings"
subquestions:
- variable: auth.key
default: "my secret key"
default: "myauthkey"
description: "Key for internal authentication, https://docs.mongodb.com/v3.0/tutorial/enable-internal-authentication/"
type: string
label: Auth Key
......
......@@ -8,6 +8,9 @@ metadata:
release: {{ .Release.Name }}
name: {{ template "mongodb-replicaset.fullname" . }}
spec:
podManagementPolicy: {{ .Values.podManagementPolicy }}
updateStrategy:
{{ toYaml .Values.updateStrategy | indent 4 }}
selector:
matchLabels:
app: {{ template "mongodb-replicaset.name" . }}
......@@ -215,6 +218,7 @@ spec:
emptyDir: {}
- name: configdir
emptyDir: {}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- if .Values.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
......
......@@ -7,6 +7,15 @@ podDisruptionBudget: {}
# maxUnavailable: 1
# minAvailable: 2
## The StatefulSet Update Strategy which Kafka will use when changes are applied.
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
updateStrategy:
type: "OnDelete"
## Start and stop pods in Parallel or OrderedReady (one-by-one.) Note - Can not change after first release.
## ref: https://kubernetes.io/docs/tutorials/stateful-application/basic-stateful-set/#pod-management-policy
podManagementPolicy: OrderedReady
auth:
enabled: false
# adminUser: username
......@@ -88,6 +97,11 @@ tls:
# Entries for the MongoDB config file
configmap:
## Period to wait for broker graceful shutdown (sigterm) before pod is killed (sigkill)
## ref: https://kubernetes-v1-4.github.io/docs/user-guide/production-pods/#lifecycle-hooks-and-termination-notice
## ref: https://kafka.apache.org/10/documentation.html#brokerconfigs controlled.shutdown.*
terminationGracePeriodSeconds: 30
# Readiness probe
readinessProbe:
initialDelaySeconds: 5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment