2017-10-24 19:11:53 +08:00
|
|
|
## Bitnami MongoDB image version
|
|
|
|
## ref: https://hub.docker.com/r/bitnami/mongodb/tags/
|
|
|
|
##
|
2018-05-04 19:53:39 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/bitnami-mongodb:3.4.9-r1
|
2017-10-24 19:11:53 +08:00
|
|
|
|
|
|
|
## Specify a imagePullPolicy
|
|
|
|
## 'Always' if imageTag is 'latest', else set to 'IfNotPresent'
|
|
|
|
## ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
|
|
|
##
|
|
|
|
# imagePullPolicy:
|
|
|
|
|
|
|
|
## MongoDB admin password
|
|
|
|
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#setting-the-root-password-on-first-run
|
|
|
|
##
|
|
|
|
# mongodbRootPassword:
|
|
|
|
|
|
|
|
## MongoDB custom user and database
|
|
|
|
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#creating-a-user-and-database-on-first-run
|
|
|
|
##
|
|
|
|
# mongodbUsername:
|
|
|
|
# mongodbPassword:
|
|
|
|
# mongodbDatabase:
|
|
|
|
|
|
|
|
## Kubernetes service type
|
|
|
|
serviceType: ClusterIP
|
|
|
|
|
|
|
|
## Enable persistence using Persistent Volume Claims
|
|
|
|
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
|
|
|
|
##
|
|
|
|
persistence:
|
|
|
|
enabled: false
|
|
|
|
## mongodb data Persistent Volume Storage Class
|
|
|
|
## If defined, storageClassName: <storageClass>
|
|
|
|
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
|
|
|
## If undefined (the default) or set to null, no storageClassName spec is
|
|
|
|
## set, choosing the default provisioner. (gp2 on AWS, standard on
|
|
|
|
## GKE, AWS & OpenStack)
|
|
|
|
##
|
|
|
|
# storageClass: "-"
|
|
|
|
accessMode: ReadWriteOnce
|
|
|
|
size: 8Gi
|
|
|
|
|
|
|
|
## Configure resource requests and limits
|
|
|
|
## ref: http://kubernetes.io/docs/user-guide/compute-resources/
|
|
|
|
##
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: 256Mi
|
|
|
|
cpu: 100m
|