change mongodb files

This commit is contained in:
soukainna 2023-07-10 11:05:12 +02:00
parent c9d4944684
commit 94f8131a53
9 changed files with 132 additions and 8 deletions

View File

@ -0,0 +1,23 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: app-agenda
namespace: argocd
spec:
project: default
source:
repoURL: https://github.com/soukainna/kubeArgocdTesting
targetRevision: HEAD
path: agenda
destination:
server: https://kubernetes.default.svc
namespace: argoapp
syncPolicy:
syncOptions:
- CreateNamespace=true
automated:
selfHeal: true
prune: true

View File

@ -5,13 +5,13 @@ metadata:
sealedsecrets.bitnami.com/namespace-wide: "true" sealedsecrets.bitnami.com/namespace-wide: "true"
creationTimestamp: null creationTimestamp: null
name: mobility-account-secret name: mobility-account-secret
namespace: default namespace: argocd-test
spec: spec:
encryptedData: encryptedData:
services_oidc_provider_csrf_key: AgB2Mn2KrUOinOeg5+GV7OSHJZr33r9uhbFUwe86eiCeQSrpaMIU0hyRau/7VjCZ5n64UbCQHsiMiFGvme4CHAiUsmRtBMqWxIF0kwGy/5GxyVu32vIUSwX5rEtfCLTbW1kQ5cRlsXpRG90pCBG47x56oakrFeX8yCft8WA8U8Qy9hhcXzny1A+7ITbYEVTpt/9fMkOaTrcoPZlVvxTUBXMOrvrQYEg22mnDVENvvZ4jIimHp0qA5uDqF2sq7gXMXNXBeiem3mPLVKCGGbtMmWcGjgXoFZccsNPp3kBzeAgoBIV1a3+cQv5kAo/GehgzhN0iDwmmvfzR8EicohWybt67h6YTCGsoSQ/Rg0WXj61O4lLhKYhTlG1Pw+2dIsvC43ALNanZBc1Gx8Vt7QjL3ms03FjRtHJzYweyNT6RXF0XE9yo0TMjNMmCRNsq4EOO9zkMI9NR8subIP7IKUviZEGKF3gXlG6oxGG/SLkgzYhEONN9B9xFPF+OleijceeWxDb2CFAH86mlqvePHpbU2v1yRAlECb/EQw/NgZoeRzOYbe6toPJgWHV2l33eHYQ/T8EZdu5nMdNAzjLnaTSX8GLL+GCCv5pW6RuFG2DecrDpijXYv5ULIinc+oQLJ8XFFKpsYR+0Sk9/047N3jToEQhExGdDDKozJB68z6uMcVM0UbYzIZjPX6jFHhJRS9IsXIbrVdnnsFiTzRntvcRp1TqUqJ9IgP88HaELytm+Hxd1mQ== services_oidc_provider_csrf_key: AgCN7Vcaid7r3SggtT6BH2IHyfNG1btvp3BF/hXnA5ofI9pnSArskvnNHdqzLL+GIzXu5iJnM+6YJsp4JKi6G8TcyQ9tpQneDmPiJCjUp2+TIPilJ+4DAjQ+ffdFKo/HGi3Viq0AAYy4225UeGS7734rm0reiTPQ5Ntfd8gyxdXHPQTuB51a5NMWz/TAIY4+Vlpvmgo+uJ4faysZ61ydRq5M7Um2rBaawCypcWgbsOWXUip4Zi2BaQnEkQJDsC4LfAFD83TRuY0eKc5uqfuIHqNzIHyVJMPV8q8INbgCCsUkWTFLqSEcChCSikAisisxAWAMULpb72Canspskd7MtnHzavE3oypWp5K6LCLF1W39R+o+Gr9a2jFskgQHZ9rNi2LF2gUHHLuPhIbDC1Fb59LOpxSgxZn8kQHoF/SBtHdTEmChDe8xMBa80x3P9l3S7mt7r6AIjv162/EWcAJHO60V8b94qnGHS43+tc9YMYjGOlHFSP0ubJEa/5deKVi8Zvj9/+n5hs0bkYITGE0IYnGMiPTcHnJ4chkt8nqGXF/KJVmrLN0uNp+3y4ro+/n/UIxNPcRyrepvNME8xkdNbpUbUu1gUnud0xwb890S++fDbLD0edmGOf6amDqJoxN+onjOtFfmaA2/5RVG9kDoL84EHlYIXX4Nz2p5B1fOIi3SmcRrfjWkK5K87meEfOrJZxnc9YyoRokyWetk3ciXJLLMG1e8s86lGNyuUfg9OYcGAA==
services_oidc_provider_namespaces_parcoursmob_clients_id: AgCv8+Kd/v1u2+JKQTQtdigWPeszc+FOChEC167rOoC+lPjpu2Oadq2gl4EDQyLDxvBUwJwBj9s6dMRjaxKgb7RLMneHnwgjTMiKzufzBB0C5tvH5OY1WOQP7q0XC82mTzmHLw40B82V5tpqsqTWHbVQE3BF39OLhh4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ider_namespaces_parcoursmob_clients_secret: AgCYGKTDQPaGNGtK0rUweVhl8yb3sgF3Q8Cupt0xJbkNmAFYixX0ML0Lg7+If1n9j6pWAkc8hBVffSjTH9By+WnWCwibSyBS2/ObjmPclqqG9O1BNEQPgULxbAWHJ8mlaCzYyjPgbQsiYPJBB1MTfgMy3rfiHa+SLpbhT4lFFvjeqDJD8c2AKSIDsElonvUQTqpM2ZSyJFkX+3BKYWOSpde485wlXLHYpxN1UeKVUx3qU+eEjx9PS/fPkGP+2WcQP6TK9J/tf+s0yLjLj6el2SLYLVFzEWjMrTN4f2S4+nlZJncpZL84NWbaAcykCQJYnTkPZZazI3r0ju6IeTH15OEyKECjz6JcOxONhdr3WKzFEMwYyMq0jfGyBnLl2b2pXJEpdjuIwqNILzdbUN7uSVAPOBec2FH+P0TQmnVnmUW9h0npUelEYRM1UoOB85acwNvffdb2JV7dvBh/pzbIwb6LtXl2iBgK5WxaPioGvxLoemeUsiXJNbmK6NmposU5d+u4IYIdbDMK7UINy8J6p9wdkarDyb/OiA75JPGQ/1+KYNyGIu9XUsELumiD8isg7YN7nSoVVhhCMa2MthrjqpR/L/lbfd9No/VbaF/22wj5rMjilQpwyv1afsWPimefv+hopGjER4AK7TlMSdTPa4rH2oG05pFE4dwmANRXkrlXDr8hare+p19v9+pHRGYtOandFA4qpHsiYrjUD04rokkTSxZftfXD92xMjuWi6Ef0w+hY05UH3DZsESQfz13L/Re6pf0nUrMZ0jZDxy0=
services_oidc_provider_namespaces_parcoursmob_secret_key: AgBhgRzJwpBz+uEekHf9KSuikrtMH90Qua3fBLuOefgBYELr8bpY+NBfSgXJ2ro9G7UTTpY0rDwr2EGbij6ZMVPXQ+cNGqE57elZbIJ94+PpbSoD9rq6xJwD7+UtM0nERbjW97ICAaHQjFqIC+lj7pMSyE6M3P577+A6kFAoxjWlRnkxi+r9nqoFgGQLAU1ESkFhgKi/1CWIw3YI8HaKyTbaJjoFovmpKGt20w0Wssaa7/F7TC+UYazX5ZTFNC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DG+5mT/rgMjTUNgNid4itDiumYh/gX4LSFKltX4wkAq89lmxmz6rRW4bXxbIB6Rv97guKh1+ydMzRVBd6XYIZqZjeKxlhtk70KNX65ANQ5x6VLwC9cXkclAinIKeDsIeedzjIL4HZFXyCK82wf+ES5nvJEYV4IUrPdYfwHFfUCWpj22Z5IPFkmaI1++zx0bWQ==
template: template:
metadata: metadata:
annotations: annotations:
@ -19,6 +19,6 @@ spec:
sealedsecrets.bitnami.com/namespace-wide: "true" sealedsecrets.bitnami.com/namespace-wide: "true"
creationTimestamp: null creationTimestamp: null
name: mobility-account-secret name: mobility-account-secret
namespace: default namespace: argocd-test
type: Opaque type: Opaque

View File

@ -1,8 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
bases: # bases:
- rbac/ # - rbac/
resources: resources:
- role.yaml
- role_binding.yaml
- service_account.yaml
- service_account_database.yaml
- role_binding_database.yaml
- role_database.yaml
- mongodb.yaml - mongodb.yaml

46
mongodb/role.yaml Normal file
View File

@ -0,0 +1,46 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: mongodb-kubernetes-operator
rules:
- apiGroups:
- ""
resources:
- pods
- services
- configmaps
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- mongodbcommunity.mongodb.com
resources:
- mongodbcommunity
- mongodbcommunity/status
- mongodbcommunity/spec
- mongodbcommunity/finalizers
verbs:
- get
- patch
- list
- update
- watch

11
mongodb/role_binding.yaml Normal file
View File

@ -0,0 +1,11 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mongodb-kubernetes-operator
subjects:
- kind: ServiceAccount
name: mongodb-kubernetes-operator
roleRef:
kind: Role
name: mongodb-kubernetes-operator
apiGroup: rbac.authorization.k8s.io

View File

@ -0,0 +1,11 @@
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mongodb-database
subjects:
- kind: ServiceAccount
name: mongodb-database
roleRef:
kind: Role
name: mongodb-database
apiGroup: rbac.authorization.k8s.io

View File

@ -0,0 +1,19 @@
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: mongodb-database
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiGroups:
- ""
resources:
- pods
verbs:
- patch
- delete
- get

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: mongodb-kubernetes-operator

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: mongodb-database