mirror of
https://github.com/bitnami/charts.git
synced 2026-03-08 08:47:24 +08:00
postgresql: added secrets manifest for sensitive variables.
A secret volume named `postgresql` is created to store password variables.
This commit is contained in:
@@ -2,7 +2,7 @@ name: postgresql
|
||||
home: http://www.postgresql.org
|
||||
source:
|
||||
- https://github.com/bitnami/bitnami-docker-postgresql
|
||||
version: 0.2.0
|
||||
version: 0.2.1
|
||||
description: Chart for PostgreSQL
|
||||
maintainers:
|
||||
- Bitnami <containers@bitnami.com>
|
||||
|
||||
@@ -25,7 +25,10 @@ spec:
|
||||
- name: POSTGRES_USER
|
||||
value: "postgres"
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: ""
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgresql
|
||||
key: postgres-password
|
||||
- name: POSTGRES_DB
|
||||
value: ""
|
||||
ports:
|
||||
|
||||
11
postgresql/manifests/postgresql-secrets.yaml
Normal file
11
postgresql/manifests/postgresql-secrets.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
#helm:generate helmc tpl -d tpl/values.toml -o manifests/postgresql-secrets.yaml $HELM_GENERATE_FILE
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgresql
|
||||
labels:
|
||||
provider: postgresql
|
||||
heritage: bitnami
|
||||
type: Opaque
|
||||
data:
|
||||
postgres-password: ""
|
||||
@@ -25,7 +25,10 @@ spec:
|
||||
- name: POSTGRES_USER
|
||||
value: {{ .postgresUser | quote }}
|
||||
- name: POSTGRES_PASSWORD
|
||||
value: {{ .postgresPassword | quote }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgresql
|
||||
key: postgres-password
|
||||
- name: POSTGRES_DB
|
||||
value: {{ .postgresDb | quote }}
|
||||
ports:
|
||||
|
||||
11
postgresql/tpl/postgresql-secrets.yaml
Normal file
11
postgresql/tpl/postgresql-secrets.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
#helm:generate helmc tpl -d tpl/values.toml -o manifests/postgresql-secrets.yaml $HELM_GENERATE_FILE
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: postgresql
|
||||
labels:
|
||||
provider: postgresql
|
||||
heritage: bitnami
|
||||
type: Opaque
|
||||
data:
|
||||
postgres-password: {{ .postgresPassword | b64enc | quote }}
|
||||
Reference in New Issue
Block a user