Commit 7897c337 by Guangbo Chen

fixed mongodb auth key issue and update values

parent 88c9db61
...@@ -52,7 +52,7 @@ questions: ...@@ -52,7 +52,7 @@ questions:
required: true required: true
group: "MongoDB Settings" group: "MongoDB Settings"
- variable: auth.enabled - variable: auth.enabled
default: "false" default: true
description: "If true, keyfile access control is enabled" description: "If true, keyfile access control is enabled"
type: boolean type: boolean
label: Enable Auth label: Enable Auth
...@@ -61,7 +61,7 @@ questions: ...@@ -61,7 +61,7 @@ questions:
group: "MongoDB Settings" group: "MongoDB Settings"
subquestions: subquestions:
- variable: auth.key - variable: auth.key
default: "my secret key" default: "myauthkey"
description: "Key for internal authentication, https://docs.mongodb.com/v3.0/tutorial/enable-internal-authentication/" description: "Key for internal authentication, https://docs.mongodb.com/v3.0/tutorial/enable-internal-authentication/"
type: string type: string
label: Auth Key label: Auth Key
......
...@@ -8,6 +8,9 @@ metadata: ...@@ -8,6 +8,9 @@ metadata:
release: {{ .Release.Name }} release: {{ .Release.Name }}
name: {{ template "mongodb-replicaset.fullname" . }} name: {{ template "mongodb-replicaset.fullname" . }}
spec: spec:
podManagementPolicy: {{ .Values.podManagementPolicy }}
updateStrategy:
{{ toYaml .Values.updateStrategy | indent 4 }}
selector: selector:
matchLabels: matchLabels:
app: {{ template "mongodb-replicaset.name" . }} app: {{ template "mongodb-replicaset.name" . }}
...@@ -215,6 +218,7 @@ spec: ...@@ -215,6 +218,7 @@ spec:
emptyDir: {} emptyDir: {}
- name: configdir - name: configdir
emptyDir: {} emptyDir: {}
terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }}
{{- if .Values.persistentVolume.enabled }} {{- if .Values.persistentVolume.enabled }}
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
......
...@@ -7,6 +7,15 @@ podDisruptionBudget: {} ...@@ -7,6 +7,15 @@ podDisruptionBudget: {}
# maxUnavailable: 1 # maxUnavailable: 1
# minAvailable: 2 # 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: auth:
enabled: false enabled: false
# adminUser: username # adminUser: username
...@@ -88,6 +97,11 @@ tls: ...@@ -88,6 +97,11 @@ tls:
# Entries for the MongoDB config file # Entries for the MongoDB config file
configmap: 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 # Readiness probe
readinessProbe: readinessProbe:
initialDelaySeconds: 5 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