argocd mongodb-operator

This commit is contained in:
2025-08-07 19:23:02 +03:00
parent bbf454f33d
commit f5560f812b
4 changed files with 40 additions and 7 deletions

View File

@@ -0,0 +1,21 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mongodb-operator
namespace: argocd
spec:
project: k-space.ee
source:
# also depends on git@git.k-space.ee:secretspace/kube.git
repoURL: git@git.k-space.ee:k-space/kube.git
targetRevision: HEAD
path: mongodb-operator
destination:
server: 'https://kubernetes.default.svc'
namespace: mongodb-operator
# syncPolicy:
# automated:
# prune: true
syncOptions:
- CreateNamespace=true

View File

@@ -1 +0,0 @@
application.yml

View File

@@ -1,13 +1,13 @@
# MongoDB Community Kubernetes Operator # MongoDB Community Kubernetes Operator
To update operator itself: ## Derployment
With ArgoCD. Render it locally:
```sh
kustomize build . --enable-helm
``` ```
helm repo add mongodb https://mongodb.github.io/helm-charts
helm template -n mongodb-operator community-operator mongodb/community-operator -f values.yaml > application.yml
kubectl create namespace mongodb-operator
kubectl apply -f application.yml
```
To update RBAC rules: To update RBAC rules:

View File

@@ -0,0 +1,13 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: mongodb-operator
# spec: https://kubectl.docs.kubernetes.io/references/kustomize/builtins/#_helmchartinflationgenerator_
helmCharts:
- includeCRDs: true
name: &name community-operator
releaseName: *name
repo: https://mongodb.github.io/helm-charts
valuesFile: values.yaml
version: 0.10.0 # helm search repo mongodb/community-operator --versions