From 4842d3ec222ccac83fa929b1e2974851e3a010d2 Mon Sep 17 00:00:00 2001 From: Tim Collins <45351296+tico24@users.noreply.github.com> Date: Mon, 14 Jun 2021 12:51:38 +0100 Subject: [PATCH] mongodb service to only read/write to primary db container (#52) * Fix mongodb service --- charts/sorry-cypress/Chart.yaml | 2 +- charts/sorry-cypress/templates/_helpers.tpl | 2 +- charts/sorry-cypress/values.yaml | 15 +++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/charts/sorry-cypress/Chart.yaml b/charts/sorry-cypress/Chart.yaml index c901d84..3af347f 100644 --- a/charts/sorry-cypress/Chart.yaml +++ b/charts/sorry-cypress/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: sorry-cypress description: A Helm chart for Sorry Cypress type: application -version: 1.0.0-alpha1 +version: 1.0.0-alpha2 appVersion: 1.0.3 home: https://sorry-cypress.dev/ sources: diff --git a/charts/sorry-cypress/templates/_helpers.tpl b/charts/sorry-cypress/templates/_helpers.tpl index a370045..211e173 100644 --- a/charts/sorry-cypress/templates/_helpers.tpl +++ b/charts/sorry-cypress/templates/_helpers.tpl @@ -78,7 +78,7 @@ Create the s3 secret {{- if eq .Values.mongodb.architecture "standalone" }} {{- printf "%s-%s" (include "sorry-cypress-helm.fullname" .) "mongodb" -}} {{- else }} - {{- printf "%s-%s" (include "sorry-cypress-helm.fullname" .) "mongodb-headless" -}} + {{- printf "%s-%s" (include "sorry-cypress-helm.fullname" .) "mongodb-0" -}} {{- end }} {{- else }} {{- printf "%s" .Values.mongodb.mongoServer -}} diff --git a/charts/sorry-cypress/values.yaml b/charts/sorry-cypress/values.yaml index 7c49d8b..f431880 100644 --- a/charts/sorry-cypress/values.yaml +++ b/charts/sorry-cypress/values.yaml @@ -195,8 +195,23 @@ mongodb: architecture: replicaset auth: enabled: false + + resources: + limits: {} + # cpu: 100m + # memory: 128Mi + requests: + cpu: 25m + memory: 90Mi + persistence: enabled: false + size: 1Gi + + externalAccess: + enabled: true + service: + type: ClusterIP s3: bucketName: example-bucket