|
| 1 | +# Default values for mongodb-operated. |
| 2 | +# This is a YAML-formatted file. |
| 3 | +# Declare variables to be passed into your templates. |
| 4 | + |
| 5 | +# number of replicas in the replicaset of mongodb |
| 6 | +replicaCount: 1 |
| 7 | + |
| 8 | +# overide mongodb version |
| 9 | +# ex version: appVersion: "7.0.14" |
| 10 | +version: "" |
| 11 | + |
| 12 | +image: |
| 13 | + # warning : there is difference with classical helm chart |
| 14 | + # repository image is managed by the operator |
| 15 | + # tag is manage by appVersion |
| 16 | + pullPolicy: IfNotPresent |
| 17 | + # special case of ASNR |
| 18 | + # suffix of the docker image tag |
| 19 | + # see quay.io/repository/mongodb/mongodb-community-server |
| 20 | + #type: "" |
| 21 | + |
| 22 | +# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ |
| 23 | +imagePullSecrets: [] |
| 24 | + |
| 25 | + |
| 26 | +# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/ |
| 27 | +# currenty, at ASNR, a kyverno policy automatically created the service account |
| 28 | +# role and role binding |
| 29 | +serviceAccount: |
| 30 | + # Specifies whether a service account should be created |
| 31 | + create: false |
| 32 | + # Automatically mount a ServiceAccount's API credentials? |
| 33 | + automount: true |
| 34 | + # Annotations to add to the service account |
| 35 | + annotations: {} |
| 36 | + # The name of the service account to use. |
| 37 | + # If not set and create is true, a name is generated using the fullname template |
| 38 | + name: "" |
| 39 | + |
| 40 | +resources: |
| 41 | + # resources value for the replicas must be adjusted given the environment |
| 42 | + # staging, preprod, prod |
| 43 | + limits: |
| 44 | + cpu: "2" |
| 45 | + memory: 2Gi |
| 46 | + requests: |
| 47 | + cpu: 100m |
| 48 | + memory: 200Mi |
| 49 | + |
| 50 | +# configuration for container mongo-agent |
| 51 | +agent: |
| 52 | + # This sets the pull policy for images. |
| 53 | + pullPolicy: IfNotPresent |
| 54 | + # resources specific to agent |
| 55 | + resources: |
| 56 | + limits: |
| 57 | + cpu: "1" |
| 58 | + memory: 512Mi |
| 59 | + requests: |
| 60 | + cpu: 50m |
| 61 | + memory: 100Mi |
| 62 | + |
| 63 | +# pvc configuration |
| 64 | +# specify size and storage class for data volume and backup volume |
| 65 | +pvc: |
| 66 | + data: |
| 67 | + storageClass: "" |
| 68 | + size: 10Gi |
| 69 | + backup: |
| 70 | + storageClass: "" |
| 71 | + size: 10Gi |
| 72 | + |
| 73 | +# user configuration |
| 74 | +# this fied is used to fill the `spec.users` field from the MongoDBCommunity |
| 75 | +# ressource |
| 76 | +# the root must be included |
| 77 | +# spec: https://github.com/mongodb/mongodb-kubernetes/blob/master/docs/mongodbcommunity/users.md#modify-the-mongodbcommunity-resource |
| 78 | +users: |
| 79 | +# example |
| 80 | +# - name: user |
| 81 | +# db: mydb |
| 82 | +# secretName: mysecret |
| 83 | +# secretKeyPassword: secret-user-password |
| 84 | +# roles: |
| 85 | +# - name: readWrite |
| 86 | +# db: mydb |
| 87 | +# - name: clusterMonitor |
| 88 | +# db: admin |
| 89 | +# scramCredentialsSecretName: scram-user |
0 commit comments