Skip to content

Instantly share code, notes, and snippets.

@iamabhishek-dubey
Created May 28, 2022 09:15
Show Gist options
  • Save iamabhishek-dubey/34b3b9c2ee31c0bf243ac8aeef4a2256 to your computer and use it in GitHub Desktop.
Save iamabhishek-dubey/34b3b9c2ee31c0bf243ac8aeef4a2256 to your computer and use it in GitHub Desktop.
---
apiVersion: opstreelabs.in/v1alpha1
kind: MongoDBCluster
metadata:
name: mongodb
spec:
clusterSize: 3
kubernetesConfig:
image: quay.io/opstree/mongo:v5.0
imagePullPolicy: IfNotPresent
storage:
accessModes: ["ReadWriteOnce"]
storageSize: 1Gi
storageClass: csi-cephfs-sc
mongoDBSecurity:
mongoDBAdminUser: admin
secretRef:
name: mongodb-secret
key: password
mongoDBMonitoring:
enableExporter: true
image: bitnami/mongodb-exporter:0.11.2-debian-10-r382
imagePullPolicy: IfNotPresent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment