1
0
forked from k-space/kube

wildduck: Update dedicated Mongo for Wildduck

This commit is contained in:
Lauri Võsandi 2023-08-24 20:04:32 +03:00
parent a3539de9e0
commit f10ff329b7
2 changed files with 3 additions and 19 deletions

View File

@ -8,15 +8,6 @@ spec:
- key: password - key: password
value: "%(plaintext)s" value: "%(plaintext)s"
--- ---
apiVersion: codemowers.cloud/v1beta1
kind: SecretClaim
metadata:
name: wildduck-readonly-password
spec:
mapping:
- key: password
value: "%(plaintext)s"
---
apiVersion: mongodbcommunity.mongodb.com/v1 apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity kind: MongoDBCommunity
metadata: metadata:
@ -34,21 +25,13 @@ spec:
modes: ["SCRAM"] modes: ["SCRAM"]
users: users:
- name: readwrite - name: readwrite
db: application db: wildduck
passwordSecretRef: passwordSecretRef:
name: wildduck-readwrite-password name: wildduck-readwrite-password
roles: roles:
- name: readWrite - name: readWrite
db: application db: application
scramCredentialsSecretName: wildduck-readwrite scramCredentialsSecretName: wildduck-readwrite
- name: readonly
db: application
passwordSecretRef:
name: wildduck-readonly-password
roles:
- name: read
db: application
scramCredentialsSecretName: wildduck-readonly
statefulSet: statefulSet:
spec: spec:
logLevel: WARN logLevel: WARN
@ -77,7 +60,7 @@ spec:
- key: app - key: app
operator: In operator: In
values: values:
- wildduck-svc - wildduck-mongodb-svc
topologyKey: topology.kubernetes.io/zone topologyKey: topology.kubernetes.io/zone
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:

View File

@ -0,0 +1 @@
../mongodb-operator/mongodb-support.yml