Files
kube/_disabled/mongodb-operator
2025-08-08 03:06:29 +03:00
..
2025-08-08 03:06:29 +03:00
2025-08-08 03:06:29 +03:00
2025-08-08 03:06:29 +03:00
2025-08-08 03:06:29 +03:00

MongoDB Community Kubernetes Operator

Derployment

With ArgoCD. Render it locally:

kustomize build . --enable-helm

Instantiating databases

For each application include mongodb-netpol.yaml and kustomization in resources:

resources:
 - https://git.k-space.ee/k-space/kube//mongodb-operator/mongodb-netpol.yaml
 - https://github.com/mongodb/mongodb-kubernetes-operator//config/rbac/?ref=v0.13.0
kubectl create secret generic -n <application> mongodb-application-user-password --from-literal="password=$(cat /dev/urandom | base64 | head -c 30)"