mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
* MongoDB sharded standarization Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Amend root user configuration and remove 'enabled' field from metrics probes Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Add major changes in README file Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Update VIB values Signed-off-by: Fran Mulero <fmulero@vmware.com> * Apply suggestions Signed-off-by: Fran Mulero <fmulero@vmware.com> * Amend vib config Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Disable persistence in vib deploy Signed-off-by: Fran Mulero <fmulero@vmware.com> * Little fixes Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Disable startup probe by default Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Fix issues detected and review mongos-service-per-replica.yaml template Signed-off-by: Fran Mulero <fmulero@vmware.com> * Update README.md with readme-generator-for-helm Signed-off-by: Bitnami Containers <containers@bitnami.com> * Bump image version Signed-off-by: Fran Mulero <fmulero@vmware.com> * Review tiemouts after mongosh inclusion Signed-off-by: Fran Mulero <fmulero@vmware.com> * Review tiemouts after mongosh inclusion Signed-off-by: Fran Mulero <fmulero@vmware.com> * [bitnami/mongodb-sharded] Update components versions Signed-off-by: Bitnami Containers <containers@bitnami.com> Co-authored-by: Bitnami Containers <containers@bitnami.com>
38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ printf "%s-replicaset-entrypoint" (include "common.names.fullname" .) }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
data:
|
|
replicaset-entrypoint.sh: |-
|
|
#!/bin/bash
|
|
|
|
sleep 5
|
|
|
|
. /liblog.sh
|
|
|
|
# Perform adaptations depending on the host name
|
|
if [[ $HOSTNAME =~ (.*)-0$ ]]; then
|
|
info "Setting node as primary"
|
|
export MONGODB_REPLICA_SET_MODE=primary
|
|
else
|
|
info "Setting node as secondary"
|
|
export MONGODB_REPLICA_SET_MODE=secondary
|
|
{{- if .Values.auth.usePasswordFile }}
|
|
export MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD_FILE="$MONGODB_ROOT_PASSWORD_FILE"
|
|
unset MONGODB_ROOT_PASSWORD_FILE
|
|
{{- else }}
|
|
export MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD="$MONGODB_ROOT_PASSWORD"
|
|
unset MONGODB_ROOT_PASSWORD
|
|
{{- end }}
|
|
fi
|
|
|
|
exec /entrypoint.sh /run.sh
|