fix: converted Plausible config to secret

This was done as the Plausible configuration file contains the secret key base which is used to encrypt the cookies.
This commit is contained in:
Oscar Beaumont 2021-08-02 15:01:55 +08:00
parent 46f050f54c
commit dabb387823
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ Once you've entered your secret key base, base url and admin credentials, you're
```bash ```bash
kubectl create namespace plausible # Create a new namespace for all resources kubectl create namespace plausible # Create a new namespace for all resources
kubectl -n plausible create configmap plausible-config --from-env-file=plausible-conf.env # Create a configmap from the plausible-conf.env file kubectl -n plausible create secret generic plausible-config --from-env-file=plausible-conf.env # Create a configmap from the plausible-conf.env file
# Please change the Postgres and Clickhouse passwords to something more secure here! # Please change the Postgres and Clickhouse passwords to something more secure here!
kubectl -n plausible create secret generic plausible-db-user --from-literal='username=postgres' --from-literal='password=postgres' # Create the Postgres user kubectl -n plausible create secret generic plausible-db-user --from-literal='username=postgres' --from-literal='password=postgres' # Create the Postgres user
kubectl -n plausible create secret generic plausible-events-db-user --from-literal='username=clickhouse' --from-literal='password=clickhouse' # Create the Clickhouse user kubectl -n plausible create secret generic plausible-events-db-user --from-literal='username=clickhouse' --from-literal='password=clickhouse' # Create the Clickhouse user

View File

@ -50,7 +50,7 @@ spec:
args: args:
- sleep 30 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin - sleep 30 && /entrypoint.sh db createdb && /entrypoint.sh db migrate && /entrypoint.sh db init-admin
envFrom: envFrom:
- configMapRef: - secretRef:
name: plausible-config name: plausible-config
env: env:
- name: POSTGRES_USER - name: POSTGRES_USER
@ -95,7 +95,7 @@ spec:
ports: ports:
- containerPort: 8000 - containerPort: 8000
envFrom: envFrom:
- configMapRef: - secretRef:
name: plausible-config name: plausible-config
env: env:
- name: POSTGRES_USER - name: POSTGRES_USER