Skip to content

Commit 487f82c

Browse files
committed
Move the secret into a separate file
1 parent b3ace96 commit 487f82c

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

k8s/postgresql.yaml

-18
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,3 @@ spec:
7171
ports:
7272
- port: 5432
7373
targetPort: 5432
74-
75-
---
76-
# This secret can also be created from the command line using environment variables
77-
#
78-
# export DATABASE_URI='postgresql+psycopg://<userid>:<password>@<hostname>:<port>/<database-name>'
79-
# export POSTGRES_PASSWORD='<place-password-here>'
80-
#
81-
# kubectl create secret generic postgres-creds \
82-
# --from-literal=password=$POSTGRES_PASSWORD
83-
# --from-literal=database_uri=$DATABASE_URI
84-
#
85-
apiVersion: v1
86-
kind: Secret
87-
metadata:
88-
name: postgres-creds
89-
data:
90-
password: cG9zdGdyZXM=
91-
database_uri: cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cG9zdGdyZXNAcG9zdGdyZXM6NTQzMi9wb3N0Z3Jlcw==

k8s/secret.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
# This secret can also be created from the command line using environment variables
3+
#
4+
# export DATABASE_URI='postgresql+psycopg://<userid>:<password>@<hostname>:<port>/<database-name>'
5+
# export POSTGRES_PASSWORD='<place-password-here>'
6+
#
7+
# kubectl create secret generic postgres-creds \
8+
# --from-literal=password=$POSTGRES_PASSWORD
9+
# --from-literal=database_uri=$DATABASE_URI
10+
#
11+
apiVersion: v1
12+
kind: Secret
13+
metadata:
14+
name: postgres-creds
15+
data:
16+
password: cG9zdGdyZXM=
17+
database_uri: cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cG9zdGdyZXNAcG9zdGdyZXM6NTQzMi9wb3N0Z3Jlcw==

0 commit comments

Comments
 (0)