mirror of
https://github.com/wahyd4/home-argocd.git
synced 2026-08-08 21:05:09 +10:00
141 lines
5.6 KiB
YAML
141 lines
5.6 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: mongodb
|
|
namespace: argocd
|
|
spec:
|
|
project: default
|
|
source:
|
|
chart: mongodb
|
|
repoURL: https://charts.bitnami.com/bitnami
|
|
path: mongodb
|
|
targetRevision: 13.6.1
|
|
helm:
|
|
releaseName: mongodb
|
|
# valueFiles: ['redis-values.yaml']
|
|
values: |
|
|
podSecurityContext:
|
|
enabled: true
|
|
fsGroup: 1000
|
|
containerSecurityContext:
|
|
runAsUser: 1000
|
|
nodeSelector:
|
|
kubernetes.io/hostname: server-3
|
|
tolerations:
|
|
- key: "node"
|
|
operator: "Equal"
|
|
value: "special"
|
|
effect: "NoSchedule"
|
|
- key: node-role.kubernetes.io/master
|
|
operator: Equal
|
|
value: ""
|
|
effect: NoSchedule
|
|
- key: node-role.kubernetes.io/control-plane
|
|
operator: Equal
|
|
value: ""
|
|
effect: NoSchedule
|
|
updateStrategy:
|
|
type: Recreate
|
|
## Enable persistence using Persistent Volume Claims
|
|
## ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
|
|
##
|
|
persistence:
|
|
## @param persistence.enabled Enable MongoDB(®) data persistence using PVC
|
|
##
|
|
enabled: true
|
|
## @param persistence.medium Provide a medium for `emptyDir` volumes.
|
|
## Requires persistence.enabled: false
|
|
##
|
|
# medium: ""
|
|
## @param persistence.existingClaim Provide an existing `PersistentVolumeClaim` (only when `architecture=standalone`)
|
|
## Requires persistence.enabled: true
|
|
## If defined, PVC must be created manually before volume will be bound
|
|
## Ignored when mongodb.architecture=replicaset
|
|
##
|
|
existingClaim: mongodb-local-pvc
|
|
## @param persistence.storageClass PVC Storage Class for MongoDB(®) data volume
|
|
## 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.
|
|
##
|
|
storageClass: "local-storage"
|
|
# matchLabels:
|
|
# name: mongodb
|
|
## @param persistence.accessModes PV Access Mode
|
|
##
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
## @param persistence.size PVC Storage Request for MongoDB(®) data volume
|
|
##
|
|
size: 20Gi
|
|
## @param persistence.annotations PVC annotations
|
|
##
|
|
annotations: {}
|
|
## @param persistence.mountPath Path to mount the volume at
|
|
## MongoDB(®) images.
|
|
##
|
|
mountPath: /bitnami/mongodb
|
|
## @param persistence.subPath Subdirectory of the volume to mount at
|
|
## and one PV for multiple services.
|
|
##
|
|
subPath: ""
|
|
## Fine tuning for volumeClaimTemplates
|
|
##
|
|
volumeClaimTemplates:
|
|
## @param persistence.volumeClaimTemplates.selector A label query over volumes to consider for binding (e.g. when using local volumes)
|
|
## A label query over volumes to consider for binding (e.g. when using local volumes)
|
|
## See https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#labelselector-v1-meta for more details
|
|
##
|
|
selector: {}
|
|
## @param persistence.volumeClaimTemplates.requests Custom PVC requests attributes
|
|
## Sometime cloud providers use additional requests attributes to provision custom storage instance
|
|
## See https://cloud.ibm.com/docs/containers?topic=containers-file_storage#file_dynamic_statefulset
|
|
##
|
|
requests: {}
|
|
## @param persistence.volumeClaimTemplates.dataSource Add dataSource to the VolumeClaimTemplate
|
|
##
|
|
dataSource: {}
|
|
|
|
auth:
|
|
## @param auth.enabled Enable authentication
|
|
## ref: https://docs.mongodb.com/manual/tutorial/enable-authentication/
|
|
##
|
|
enabled: true
|
|
## @param auth.rootUser MongoDB(®) root user
|
|
##
|
|
rootUser: root
|
|
## @param auth.rootPassword MongoDB(®) root password
|
|
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#setting-the-root-password-on-first-run
|
|
##
|
|
rootPassword: ""
|
|
## MongoDB(®) custom users and databases
|
|
## ref: https://github.com/bitnami/bitnami-docker-mongodb/blob/master/README.md#creating-users-and-databases-on-first-run
|
|
## @param auth.usernames List of custom users to be created during the initialization
|
|
## @param auth.passwords List of passwords for the custom users set at `auth.usernames`
|
|
## @param auth.databases List of custom databases to be created during the initialization
|
|
##
|
|
usernames: [junv]
|
|
passwords: []
|
|
databases: [crawlab]
|
|
## @param auth.replicaSetKey Key used for authentication in the replicaset (only when `architecture=replicaset`)
|
|
##
|
|
replicaSetKey: ""
|
|
## @param auth.existingSecret Existing secret with MongoDB(®) credentials (keys: `mongodb-password`, `mongodb-root-password`, ` mongodb-replica-set-key`)
|
|
## NOTE: When it's set the previous parameters are ignored.
|
|
##
|
|
existingSecret: ""
|
|
|
|
metrics:
|
|
enabled: false
|
|
serviceMonitor:
|
|
enabled: true
|
|
|
|
destination:
|
|
server: https://kubernetes.default.svc
|
|
namespace: db
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|