2022-03-28 11:22:15 +00:00
|
|
|
image:
|
2022-03-28 17:11:19 +00:00
|
|
|
repository: ghcr.io/truecharts/mongodb
|
2022-03-28 11:22:15 +00:00
|
|
|
pullPolicy: IfNotPresent
|
2022-06-13 08:53:45 +00:00
|
|
|
tag: v5.0.9@sha256:b1758ced25aa28723ab4ec9fb9a57e16ba5b9da2394dc29e2a7d8a95258354f1
|
2022-03-28 11:22:15 +00:00
|
|
|
|
|
|
|
controller:
|
|
|
|
# -- Set the controller type.
|
|
|
|
# Valid options are deployment, daemonset or statefulset
|
|
|
|
type: statefulset
|
|
|
|
# -- Number of desired pods
|
|
|
|
replicas: 1
|
|
|
|
# -- Set the controller upgrade strategy
|
|
|
|
# For Deployments, valid values are Recreate (default) and RollingUpdate.
|
|
|
|
# For StatefulSets, valid values are OnDelete and RollingUpdate (default).
|
|
|
|
# DaemonSets ignore this.
|
|
|
|
strategy: RollingUpdate
|
|
|
|
rollingUpdate:
|
|
|
|
# -- Set deployment RollingUpdate max unavailable
|
|
|
|
unavailable: 1
|
|
|
|
# -- Set deployment RollingUpdate max surge
|
|
|
|
surge:
|
|
|
|
# -- Set statefulset RollingUpdate partition
|
|
|
|
partition:
|
|
|
|
# -- ReplicaSet revision history limit
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 27017
|
|
|
|
targetPort: 27017
|
|
|
|
|
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: false
|
|
|
|
|
|
|
|
podSecurityContext:
|
|
|
|
runAsGroup: 0
|
|
|
|
|
|
|
|
volumeClaimTemplates:
|
|
|
|
data:
|
|
|
|
enabled: true
|
|
|
|
mountPath: "/bitnami/mongodb"
|
|
|
|
|
|
|
|
# -- Probe configuration
|
|
|
|
# -- [[ref]](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/)
|
|
|
|
# @default -- See below
|
|
|
|
probes:
|
|
|
|
# -- Liveness probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
liveness:
|
|
|
|
# -- Enable the liveness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own livenessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-04-25 19:02:58 +00:00
|
|
|
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
|
2022-03-28 11:22:15 +00:00
|
|
|
|
|
|
|
# -- Redainess probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
readiness:
|
|
|
|
# -- Enable the readiness probe
|
|
|
|
enabled: true
|
|
|
|
# -- Set this to `true` if you wish to specify your own readinessProbe
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default readinessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the readinessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-04-25 19:02:58 +00:00
|
|
|
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
|
2022-04-25 11:23:57 +00:00
|
|
|
|
2022-03-28 11:22:15 +00:00
|
|
|
# -- Startup probe configuration
|
|
|
|
# @default -- See below
|
|
|
|
startup:
|
|
|
|
# -- Enable the startup probe
|
|
|
|
enabled: true
|
|
|
|
custom: true
|
|
|
|
# -- The spec field contains the values for the default livenessProbe.
|
|
|
|
# If you selected `custom: true`, this field holds the definition of the livenessProbe.
|
|
|
|
# @default -- See below
|
|
|
|
spec:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- /bin/bash
|
|
|
|
- -ec
|
2022-04-25 19:02:58 +00:00
|
|
|
- echo "db.runCommand(\"ping\")" | mongo --host localhost --port 27017 ${MONGODB_DATABASE} --quiet
|
2022-03-28 11:22:15 +00:00
|
|
|
|
|
|
|
mongodbPassword: "testpass"
|
|
|
|
mongodbUsername: "test"
|
|
|
|
mongodbDatabase: "test"
|
|
|
|
mongodbRootPassword: "testroot"
|
|
|
|
existingSecret: ""
|
|
|
|
|
2022-06-07 17:41:19 +00:00
|
|
|
secret:
|
|
|
|
credentials:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
mongodb-password: '{{ ( .Values.mongodbPassword | default "empty" ) }}'
|
|
|
|
mongodb-root-password: '{{ ( .Values.mongodbRootPassword | default "empty" ) }}'
|
|
|
|
|
|
|
|
env:
|
|
|
|
MONGODB_USERNAME: "{{ .Values.mongodbUsername }}"
|
|
|
|
MONGODB_DATABASE: "{{ .Values.mongodbDatabase }}"
|
2022-03-28 11:22:15 +00:00
|
|
|
MONGODB_PASSWORD:
|
|
|
|
secretKeyRef:
|
2022-06-07 17:41:19 +00:00
|
|
|
name: '{{ .Values.existingSecret | default ( printf "%s-credentials" ( include "tc.common.names.fullname" . ) ) }}'
|
2022-03-28 11:22:15 +00:00
|
|
|
key: "mongodb-password"
|
|
|
|
MONGODB_ROOT_PASSWORD:
|
|
|
|
secretKeyRef:
|
2022-06-07 17:41:19 +00:00
|
|
|
name: '{{ .Values.existingSecret | default ( printf "%s-credentials" ( include "tc.common.names.fullname" . ) ) }}'
|
2022-03-28 11:22:15 +00:00
|
|
|
key: "mongodb-root-password"
|