argocd mongodb-operator
This commit is contained in:
21
argocd/applications/mongodb-operator.yaml
Normal file
21
argocd/applications/mongodb-operator.yaml
Normal 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
|
1
mongodb-operator/.gitignore
vendored
1
mongodb-operator/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
application.yml
|
@@ -1,13 +1,13 @@
|
||||
# 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:
|
||||
|
||||
|
13
mongodb-operator/kustomization.yaml
Normal file
13
mongodb-operator/kustomization.yaml
Normal 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
|
Reference in New Issue
Block a user