Skip to content

Commit

Permalink
mongodb service to only read/write to primary db container (#52)
Browse files Browse the repository at this point in the history
* Fix mongodb service
  • Loading branch information
tico24 authored Jun 14, 2021
1 parent c4c8c92 commit 4842d3e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/sorry-cypress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion charts/sorry-cypress/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -}}
Expand Down
15 changes: 15 additions & 0 deletions charts/sorry-cypress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4842d3e

Please sign in to comment.