Skip to content

cluster-mongo Cluster Chart : Mongo

Artifacthub

This helm chart is used to deploy MongoDB instances managed by the official mongodb operator.

This chart is part of the cluster-xxx startx helm chart series that doesn’t necessarily deploy pods but rather represent a cluster configuration state orchestrated by gitops tools like ArgoCD.

Requirements and guidelines

Read the startx helm-repository homepage for more information on how to use theses resources.

Deploy this helm chart on openshift

1. Connect to your Openshift cluster

oc login -t <token> <cluster-url>

2. Install the repository

helm repo add startx https://helm-repository.readthedocs.io/en/latest/repos/stable/

3. Get information about this chart

helm show chart startx/cluster-mongo

4. Install this chart

helm install cluster-mongo startx/cluster-mongo

Deploy this helm chart with ArgoCD

1. Create the project

cat <<EOF | oc apply -f -
kind: Application
apiVersion: argoproj.io/v1alpha1
metadata:
name: mongo-project
namespace: "openshift-gitops"
spec:
  destination:
    namespace: "mongo-demo"
    server: 'https://kubernetes.default.svc'
project: default
source:
    path: charts/cluster-mongo/
    repoURL: 'https://github.com/startxfr/helm-repository.git'
    targetRevision: "stable"
    helm:
    valueFiles:
    - values-demo.yaml
    parameters:
    - name: project.enabled
      value: "true"
EOF

2. Deploy the operator

cat <<EOF | oc apply -f -
kind: Application
apiVersion: argoproj.io/v1alpha1
metadata:
name: mongo-operator
namespace: "openshift-gitops"
spec:
  destination:
    namespace: "openshift-operators"
    server: 'https://kubernetes.default.svc'
project: default
source:
    path: charts/cluster-mongo/
    repoURL: 'https://github.com/startxfr/helm-repository.git'
    targetRevision: "stable"
    helm:
    valueFiles:
    - values-demo.yaml
    parameters:
    - name: operator.enabled
      value: "true"
EOF

2. Deploy a mongo instance

cat <<EOF | oc apply -f -
kind: Application
apiVersion: argoproj.io/v1alpha1
metadata:
name: mongo-instance
namespace: "openshift-gitops"
spec:
  destination:
    namespace: "mongo-demo"
    server: 'https://kubernetes.default.svc'
project: default
source:
    path: charts/cluster-mongo/
    repoURL: 'https://github.com/startxfr/helm-repository.git'
    targetRevision: "stable"
    helm:
    valueFiles:
    - values-demo.yaml
    parameters:
    - name: cluster.enabled
      value: "true"
    - name: loader.enabled
      value: "true"
EOF

Default values

Complete deployment of a project with the following characteristics :

Todo

Complete this section

# base configuration running default configuration
helm install cluster-mongo startx/cluster-mongo

Others values availables

helm install cluster-mongo startx/cluster-mongo -f https://raw.githubusercontent.com/startxfr/helm-repository/master/charts/cluster-mongo/values-startx.yaml

History

Release Date Description
16.19.15 2024-11-10 Init cluster-mongo skeleton from cluster-mongo
16.19.17 2024-11-11 Implement the MongoDB CRD and mongo loader
16.19.29 2024-11-11 Align all chart to the 16.19.29 release
16.19.59 2024-12-09 Align all chart to the 16.19.59 release
16.19.31 2024-12-10 Align all charts to 19.19.31
16.19.43 2025-02-27 publish stable update for the full repository
17.14.1 2025-02-28 Initial release for v17.x version
17.14.3 2025-02-28 Temporary release used to prepare dependencies changes
17.14.5 2025-02-28 Align all startx helm dependencies to release 17.14.1
17.14.11 2025-03-05 Adjust doc to material layout
17.14.19 2025-03-12 Align all chart to the 17.14.19 release