Doris-Operator uses the root account without password mode when deploying and managing related service nodes. The username and password can only be reset after deployment.
Modify root account and password
- Refer to the Privilege Management document, modify or create the corresponding password or account name, and give the account the permission to manage nodes in Doris.
- An example of adding spec.adminUser.* to the configuration in the DorisCluster CRD file is as follows:
1. apiVersion: doris.selectdb.com/v1
2. kind: DorisCluster
3. metadata:
4. annotations:
5. selectdb/doriscluster: doriscluster-sample
6. labels:
7. app.kubernetes.io/instance: doris-sample
8. name: doris-sample
9. namespace: doris
10. spec:
11. adminUser:
12. name: root
13. password: root_pwd
- Update the new account and password to the deployed DorisCluster, and issue them through Doris-Operator so that each node can sense and take effect. Reference command:
1. kubectl apply --namespace ${your_namespace} -f ${your_crd_yaml_file}
Precautions
- The cluster management account is root and has no password by default.
- The username and password can only be reset after successful deployment. During initial deployment, adding
adminUsermay cause startup exceptions. - Modifying the user name and password is not a necessary operation. Only when the current cluster management user (default root) or password is modified in Doris, it needs to be issued through Doris-Operator.
- If you modify the user name
spec.adminUser.name, you need to assign the new user the permission to manage Doris nodes. - This operation restarts all nodes in sequence.
