Skip to content

Commit

Permalink
fix(helm): allow self-signed ssl (#5446)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnplkndll committed Jul 6, 2022
1 parent 4f2dd36 commit dffffd3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
6 changes: 5 additions & 1 deletion dev/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ spec:
env:
- name: DB_TYPE
value: postgres
{{- if .Values.externalPostgresql.databaseURL }}
{{- if (.Values.externalPostgresql).databaseURL }}
- name: DATABASE_URL
value: {{ .Values.externalPostgresql.databaseURL }}
- name: NODE_TLS_REJECT_UNAUTHORIZED
value: {{ default "1" .Values.externalPostgresql.NODE_TLS_REJECT_UNAUTHORIZED | quote }}
{{- else }}
- name: DB_HOST
value: {{ template "wiki.postgresql.host" . }}
Expand Down Expand Up @@ -81,6 +83,8 @@ spec:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
startupProbe:
{{- toYaml .Values.startupProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
15 changes: 14 additions & 1 deletion dev/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ readinessProbe:
path: /healthz
port: http

startupProbe:
initialDelaySeconds: 15
periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 60
httpGet:
path: /healthz
port: http

podSecurityContext: {}
# fsGroup: 2000

Expand Down Expand Up @@ -104,7 +114,10 @@ sideload:

## This will override the postgresql chart values
# externalPostgresql:
# databaseURL: postgresql://postgres:postgres@postgres:5432/wiki?sslmode=require
# # note: ?sslmode=require => ?ssl=true
# databaseURL: postgresql://postgres:postgres@postgres:5432/wiki?ssl=true
# # For self signed CAs, like DigitalOcean
# NODE_TLS_REJECT_UNAUTHORIZED: "0"

## Configuration values for the postgresql dependency.
## ref: https://github.com/kubernetes/charts/blob/master/stable/postgresql/README.md
Expand Down

0 comments on commit dffffd3

Please sign in to comment.