diff --git a/k8s/postgresql.yaml b/k8s/postgresql.yaml index 80b137a..28f0a1e 100644 --- a/k8s/postgresql.yaml +++ b/k8s/postgresql.yaml @@ -71,21 +71,3 @@ spec: ports: - port: 5432 targetPort: 5432 - ---- -# This secret can also be created from the command line using environment variables -# -# export DATABASE_URI='postgresql+psycopg://:@:/' -# export POSTGRES_PASSWORD='' -# -# kubectl create secret generic postgres-creds \ -# --from-literal=password=$POSTGRES_PASSWORD -# --from-literal=database_uri=$DATABASE_URI -# -apiVersion: v1 -kind: Secret -metadata: - name: postgres-creds -data: - password: cG9zdGdyZXM= - database_uri: cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cG9zdGdyZXNAcG9zdGdyZXM6NTQzMi9wb3N0Z3Jlcw== diff --git a/k8s/secret.yaml b/k8s/secret.yaml new file mode 100644 index 0000000..77edf9c --- /dev/null +++ b/k8s/secret.yaml @@ -0,0 +1,17 @@ +--- +# This secret can also be created from the command line using environment variables +# +# export DATABASE_URI='postgresql+psycopg://:@:/' +# export POSTGRES_PASSWORD='' +# +# kubectl create secret generic postgres-creds \ +# --from-literal=password=$POSTGRES_PASSWORD +# --from-literal=database_uri=$DATABASE_URI +# +apiVersion: v1 +kind: Secret +metadata: + name: postgres-creds +data: + password: cG9zdGdyZXM= + database_uri: cG9zdGdyZXNxbCtwc3ljb3BnOi8vcG9zdGdyZXM6cG9zdGdyZXNAcG9zdGdyZXM6NTQzMi9wb3N0Z3Jlcw==