Files
rancher-docs/content
David Noland 68ac41114f Fix reset password command
Command in doc currently doesn't work if you have rancher audit logs enabled because "grep 1/1" will not grab any results:

$ kubectl --kubeconfig $KUBECONFIG -n cattle-system exec $(kubectl --kubeconfig $KUBECONFIG -n cattle-system get pods -l app=rancher | grep '1/1' | head -1 | awk '{ print $1 }') -- reset-password
error: pod, type/name or --filename must be specified

Example of what pod results look like when audit logs are enabled:

$ kubectl get pods -l app=rancher -n cattle-system
NAME                       READY   STATUS    RESTARTS   AGE
rancher-79c8ffd84b-cjxb4   2/2     Running   0          13m
rancher-79c8ffd84b-tcpc5   2/2     Running   0          10m
2021-09-03 18:50:21 -07:00
..
2021-08-31 19:42:51 -07:00
2021-09-03 18:50:21 -07:00
2018-04-12 13:59:16 -07:00