From f64112cfc6b271123d8c45090c67087202ce9543 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Sun, 26 Feb 2023 19:22:08 -0500 Subject: [PATCH] feat: add mongo --- charts/wekan/Chart.yaml | 2 +- charts/wekan/templates/mongodb.yaml | 36 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 charts/wekan/templates/mongodb.yaml diff --git a/charts/wekan/Chart.yaml b/charts/wekan/Chart.yaml index 8fcf37b..e938994 100644 --- a/charts/wekan/Chart.yaml +++ b/charts/wekan/Chart.yaml @@ -3,7 +3,7 @@ apiVersion: v2 description: Helm chart for wekan name: wekan type: application -version: 0.1.15 +version: 0.1.17 kubeVersion: ">=1.16.0-0" keywords: - wekan diff --git a/charts/wekan/templates/mongodb.yaml b/charts/wekan/templates/mongodb.yaml new file mode 100644 index 0000000..60fe04a --- /dev/null +++ b/charts/wekan/templates/mongodb.yaml @@ -0,0 +1,36 @@ +--- +apiVersion: mongodbcommunity.mongodb.com/v1 +kind: MongoDBCommunity +metadata: + name: wekan +spec: + members: 3 + type: ReplicaSet + version: "4.2.6" + security: + authentication: + modes: ["SCRAM"] + users: + - name: app-user + db: admin + passwordSecretRef: # a reference to the secret that will be used to generate the user's password + name: mongodb-app-user + roles: + - name: clusterAdmin + db: admin + - name: userAdminAnyDatabase + db: admin + scramCredentialsSecretName: my-scram + additionalMongodConfig: + storage.wiredTiger.engineConfig.journalCompressor: zlib + +# the user credentials will be generated from this secret +# once the credentials are generated, this secret is no longer required +--- +apiVersion: v1 +kind: Secret +metadata: + name: mongodb-app-user +type: Opaque +stringData: + password: test