Skip to content

Commit fa72dc9

Browse files
committed
CH-32 Add option to directly access a database
1 parent 8c2e860 commit fa72dc9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

deployment-configuration/helm/templates/auto-database.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ metadata:
101101
app: {{ .app.harness.deployment.name | quote }}
102102
{{ include "deploy_utils.labels" .root | indent 4 }}
103103
spec:
104-
type: ClusterIP
104+
type: {{-if .app.harness.database.expose }}LoadBalancer{{- else }}ClusterIP{{- end }}
105105
selector:
106106
app: {{ .app.harness.database.name | quote }}
107107
ports:

deployment-configuration/value-template.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ harness:
7575
pass: metacell
7676
# -- image ref for referencing images from the build, e.g. image_ref: myownpgimage
7777
image_ref:
78+
# -- expose database to the public with ingress
79+
expose: false
7880
# -- settings for mongo database (for type==mongo)
7981
mongo:
8082
image: mongo:5

0 commit comments

Comments
 (0)