mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-11-09 02:09:23 +00:00
Add docs to techincal faq about ensure-default-admin command
This commit is contained in:
1 parent
0e2f95d2cd
commit
6aa95a2c36
1 file changed
+18
@@ -20,6 +20,24 @@ New password for default admin user (user-xxxxx):
|
||||
<new_password>
|
||||
```
|
||||
|
||||
### I deleted/deactivated the last admin, how can I fix it?
|
||||
Single node install:
|
||||
```
|
||||
$ docker exec -ti <container_id> ensure-default-admin
|
||||
New default admin user (user-xxxxx)
|
||||
New password for default admin user (user-xxxxx):
|
||||
<new_password>
|
||||
```
|
||||
|
||||
High Availability install:
|
||||
```
|
||||
$ KUBECONFIG=./kube_config_rancher-cluster.yml
|
||||
$ kubectl --kubeconfig $KUBECONFIG exec -n cattle-system $(kubectl --kubeconfig $KUBECONFIG get pods -n cattle-system -o json | jq -r '.items[] | select(.spec.containers[].name=="cattle-server") | .metadata.name') -- ensure-default-admin
|
||||
New password for default admin user (user-xxxxx):
|
||||
<new_password>
|
||||
```
|
||||
|
||||
|
||||
### How can I enable debug logging?
|
||||
|
||||
* Single node install
|
||||
|
||||
Reference in new issue
Block a user