From f10ff329b77916510a0c3a30e8e6aa9848f8c2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 24 Aug 2023 20:04:32 +0300 Subject: [PATCH] wildduck: Update dedicated Mongo for Wildduck --- wildduck/mongo.yaml | 21 ++------------------- wildduck/mongodb-support.yml | 1 + 2 files changed, 3 insertions(+), 19 deletions(-) create mode 120000 wildduck/mongodb-support.yml diff --git a/wildduck/mongo.yaml b/wildduck/mongo.yaml index f7c1985..96ae096 100644 --- a/wildduck/mongo.yaml +++ b/wildduck/mongo.yaml @@ -8,15 +8,6 @@ spec: - key: password 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 kind: MongoDBCommunity metadata: @@ -34,21 +25,13 @@ spec: modes: ["SCRAM"] users: - name: readwrite - db: application + db: wildduck passwordSecretRef: name: wildduck-readwrite-password roles: - name: readWrite db: application scramCredentialsSecretName: wildduck-readwrite - - name: readonly - db: application - passwordSecretRef: - name: wildduck-readonly-password - roles: - - name: read - db: application - scramCredentialsSecretName: wildduck-readonly statefulSet: spec: logLevel: WARN @@ -77,7 +60,7 @@ spec: - key: app operator: In values: - - wildduck-svc + - wildduck-mongodb-svc topologyKey: topology.kubernetes.io/zone volumeClaimTemplates: - metadata: diff --git a/wildduck/mongodb-support.yml b/wildduck/mongodb-support.yml new file mode 120000 index 0000000..e834dd2 --- /dev/null +++ b/wildduck/mongodb-support.yml @@ -0,0 +1 @@ +../mongodb-operator/mongodb-support.yml \ No newline at end of file