Important
Self-managed SingleStore will soon transition from version 9.1 RC to version 10. This new semantic versioning scheme will provide SingleStore with finer control over engine and feature releases that were not possible with the current versioning scheme.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10 prior to its general availability. Ahead of this transition, SingleStore 9.0 is recommended for production workloads, which can later be upgraded to SingleStore 10.
Specify and Rotate the Root Password
On this page
As of Operator 3.RootPasswordSecret has been added that, if specified, will set the root password to the string set in RootPasswordSecret.
Rotation occurs in the background based on the Kubernetes sync period, and will not cause a reboot.
Specify a Root Password
To specify a root password:
-
Create a Secret.
kubectl create secret generic rootpw --from-literal=password='<desired-root-password>' -
Add the following field to the
MemsqlClusterspec (sdb-cluster.yaml file) to reference this Secret with a key selector. rootPasswordSecret:key: passwordname: rootpw
Note
Currently, the exporter container (part of Monitor Your Kubernetes Cluster) will not use this new password immediately.
To allow the exporter container to use this new root password immediately, restart the exporter container.
kubectl exec -it node-<memsql-cluster-name>-master-0 -cexporter -- /bin/sh -c "kill 1"
Rotate the Root Password
To rotate the root password, change the Secret value.
kubectl patch secret rootpw --patch="{\"data\": { \"password\": \"$(echo -n 'newrootpassword123' | base64 -w0)\" }}"
Once updated, the root password will rotate in the background based on the Kubernetes sync period.
Last modified: