diff --git a/chart/templates/postgres-secret.yaml b/chart/templates/postgres-secret.yaml new file mode 100644 index 00000000..4fea087b --- /dev/null +++ b/chart/templates/postgres-secret.yaml @@ -0,0 +1,10 @@ +{{- if ne .Values.postgres.password "" }} +apiVersion: v1 +kind: Secret +metadata: + name: gitlab-postgres + namespace: {{ .Release.Namespace }} +type: kubernetes.io/opaque +stringData: + password: {{ .Values.postgres.password }} +{{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index ba25da0c..f1cb57eb 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -19,6 +19,8 @@ redis: namespace: dev-redis port: 6379 postgres: + password: "" + # Set to false to use external postgres internal: true selector: