Change setting on running self-hosted k8s deployment #4487
-
Hi, I run Plausible CE 2.2.1 on k8s instance. Bart |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Recreating the container with a new environment variable would make the new settings take effect. Note that the first account is always allowed to be created regardless of With Docker it would've been something like this: $ docker run --name plausible -e "DISABLE_REGISTRATION=true" ... ghcr.io/plausible/community-edition:v2.1.1
$ docker stop plausible && docker rm plausible && docker run -e "DISABLE_REGISTRATION=invite_only" ... ghcr.io/plausible/community-edition:v2.1.1 I'm not familiar enough with k8s to provide a better example :) But I guess k8s does something similar (recreating the container) whenever the ENV changes in the configuration files. |
Beta Was this translation helpful? Give feedback.
-
I've created the delpoyment based on the following yaml file: Here the settings environment settings are done in a secret on top of the file. in my microk8s console, I've updated the secrets with proper values, and then scaled the deployment back to 0 and up to 1 to recreate the plausible app pod. Problem solved! |
Beta Was this translation helpful? Give feedback.
I've created the delpoyment based on the following yaml file:
https://gist.github.com/semanticfire/4831e643cdfe45f6ca7cca46271a4bb2
Here the settings environment settings are done in a secret on top of the file.
in my microk8s console, I've updated the secrets with proper values, and then scaled the deployment back to 0 and up to 1 to recreate the plausible app pod.
Problem solved!