Great write-up, but a lot of people ask the question.. how do we change the adminPassword from the default prom-operator?
I believe this will work:
helm install stable/prometheus-operator --name prometheus-operator --namespace monitor --set adminPassword=yourpassword
on first install. If you're deploying using a values.yaml file using the
-f values.yaml
argument, you can upgrade your helm chart install to receive the new password:
helm upgrade prometheus-operator stable/prometheus-operator -f values.yaml
You can modify the password by going to prometheus-operator-grafana secrets in the monitor namespace and editing the admin-password and admin-user. Alternatively, you can also edit it by executing this command:
prometheus-operator-grafana
monitor
kubectl edit secrets prometheus-operator-grafana -n monitor
This will open up the secrets file and you can enter the base64 encoded secret values in the data field.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great write-up, but a lot of people ask the question.. how do we change the adminPassword from the default prom-operator?
I believe this will work:
helm install stable/prometheus-operator --name prometheus-operator --namespace monitor --set adminPassword=yourpassword
on first install. If you're deploying using a values.yaml file using the
argument, you can upgrade your helm chart install to receive the new password:
helm upgrade prometheus-operator stable/prometheus-operator -f values.yaml
You can modify the password by going to
prometheus-operator-grafana
secrets in themonitor
namespace and editing the admin-password and admin-user. Alternatively, you can also edit it by executing this command:This will open up the secrets file and you can enter the base64 encoded secret values in the data field.