Skip to content

Commit

Permalink
Upgraded MongoDB stack to v0.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: iamabhishek-dubey <abhishekbhardwaj510@gmail.com>
  • Loading branch information
iamabhishek-dubey committed Feb 16, 2022
1 parent 5ebe53c commit 15d315f
Show file tree
Hide file tree
Showing 12 changed files with 3,848 additions and 81 deletions.
4 changes: 2 additions & 2 deletions charts/mongodb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ maintainers:
name: mongodb-cluster
sources:
- https://github.com/ot-container-kit/mongodb-operator
version: 0.1.0
appVersion: "0.1.0"
version: 0.2.0
appVersion: "0.2.0"
home: https://github.com/ot-container-kit/mongodb-operator
keywords:
- operator
Expand Down
43 changes: 24 additions & 19 deletions charts/mongodb-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,27 @@ $ helm delete <my-release> --namespace <namespace>

### Parameters

| **Name** | **Value** | **Description** |
|-------------------------------------------|:------------------------:|---------------------------------------------------|
| `clusterSize` | 3 | Size of the MongoDB cluster |
| `image.name` | quay.io/opstree/mongo | Name of the MongoDB image |
| `image.tag` | v5.0 | Tag for the MongoDB image |
| `image.imagePullPolicy` | IfNotPresent | Image Pull Policy of the MongoDB |
| `resources` | {} | Request and limits for MongoDB statefulset |
| `storage.enabled` | true | Storage is enabled for MongoDB or not |
| `storage.accessModes` | ["ReadWriteOnce"] | AccessMode for storage provider |
| `storage.storageSize` | 1Gi | Size of storage for MongoDB |
| `storage.storageClass` | gp2 | Name of the storageClass to create storage |
| `mongoDBMonitoring.enabled` | true | MongoDB exporter should be deployed or not |
| `mongoDBMonitoring.image.name` | bitnami/mongodb-exporter | Name of the MongoDB exporter image |
| `mongoDBMonitoring.image.tag` | 0.11.2-debian-10-r382 | Tag of the MongoDB exporter image |
| `mongoDBMonitoring.image.imagePullPolicy` | IfNotPresent | Image Pull Policy of the MongoDB exporter image |
| `serviceMonitor.enabled` | false | Servicemonitor to monitor MongoDB with Prometheus |
| `serviceMonitor.interval` | 30s | Interval at which metrics should be scraped. |
| `serviceMonitor.scrapeTimeout` | 10s | Timeout after which the scrape is ended |
| `serviceMonitor.namespace` | monitoring | Namespace in which Prometheus operator is running |
| **Name** | **Value** | **Description** |
|-------------------------------------------|:------------------------:|------------------------------------------------------|
| `clusterSize` | 3 | Size of the MongoDB cluster |
| `image.name` | quay.io/opstree/mongo | Name of the MongoDB image |
| `image.tag` | v5.0 | Tag for the MongoDB image |
| `image.imagePullPolicy` | IfNotPresent | Image Pull Policy of the MongoDB |
| `image.pullSecret` | "" | Image Pull Secret for private registry |
| `resources` | {} | Request and limits for MongoDB statefulset |
| `storage.enabled` | true | Storage is enabled for MongoDB or not |
| `storage.accessModes` | ["ReadWriteOnce"] | AccessMode for storage provider |
| `storage.storageSize` | 1Gi | Size of storage for MongoDB |
| `storage.storageClass` | gp2 | Name of the storageClass to create storage |
| `mongoDBMonitoring.enabled` | true | MongoDB exporter should be deployed or not |
| `mongoDBMonitoring.image.name` | bitnami/mongodb-exporter | Name of the MongoDB exporter image |
| `mongoDBMonitoring.image.tag` | 0.11.2-debian-10-r382 | Tag of the MongoDB exporter image |
| `mongoDBMonitoring.image.imagePullPolicy` | IfNotPresent | Image Pull Policy of the MongoDB exporter image |
| `serviceMonitor.enabled` | false | Servicemonitor to monitor MongoDB with Prometheus |
| `serviceMonitor.interval` | 30s | Interval at which metrics should be scraped. |
| `serviceMonitor.scrapeTimeout` | 10s | Timeout after which the scrape is ended |
| `serviceMonitor.namespace` | monitoring | Namespace in which Prometheus operator is running |
| `nodeSelector` | {} | Nodeselector for the MongoDB statefulset |
| `priorityClassName` | "" | Priority class name for the MongoDB statefulset |
| `affinity` | {} | Affinity for node and pods for MongoDB statefulset |
| `tolerations` | [] | Tolerations for MongoDB statefulset |
18 changes: 18 additions & 0 deletions charts/mongodb-cluster/templates/mongodb-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,24 @@ spec:
kubernetesConfig:
image: "{{ .Values.image.name }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.imagePullPolicy }}
{{- if .Values.image.pullSecret }}
imagePullSecret: {{ .Values.image.pullSecret }}
{{- end }}
{{- if .Values.nodeSelector }}
nodeSelector:
{{ toYaml .Values.nodeSelector | indent 6 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: "{{ .Values.priorityClassName }}"
{{- end }}
{{- if .Values.affinity }}
affinity:
{{ toYaml .Values.affinity | indent 6 }}
{{- end }}
{{- if .Values.tolerations }}
tolerations:
{{ toYaml .Values.tolerations | indent 6 }}
{{- end }}
resources:
{{ toYaml .Values.resources | indent 6 }}
{{- if .Values.storage.enabled }}
Expand Down
21 changes: 21 additions & 0 deletions charts/mongodb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ image:
name: quay.io/opstree/mongo
tag: v5.0
imagePullPolicy: IfNotPresent
# pullSecret: regcred

nodeSelector: {}
# memory: high

#priorityClassName: "-"

affinity: {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: disktype
# operator: In
# values:
# - ssd

tolerations: []
# - key: "example-key"
# operator: "Exists"
# effect: "NoSchedule"

resources: {}
# requests:
Expand Down
4 changes: 2 additions & 2 deletions charts/mongodb-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
apiVersion: v2
appVersion: "0.1.0"
appVersion: "0.2.0"
description: Helm chart to deploy and manage MongoDB operator in Kubernetes.
engine: gotpl
maintainers:
Expand All @@ -9,7 +9,7 @@ maintainers:
name: mongodb-operator
sources:
- https://github.com/OT-CONTAINER-KIT/mongodb-operator
version: 0.9.0
version: 0.2.0
home: https://github.com/OT-CONTAINER-KIT/mongodb-operator
icon: https://raw.githubusercontent.com/OT-CONTAINER-KIT/mongodb-operator/main/static/mongodb-operator-logo.svg
keywords:
Expand Down
Loading

0 comments on commit 15d315f

Please sign in to comment.