Add Rancher leader election to troubleshooting

This commit is contained in:
Sebastiaan van Steenis
2019-04-04 14:26:20 +02:00
committed by Denise
parent 32794bd9af
commit e8fa5cdd33

View File

@@ -68,3 +68,13 @@ When accessing your configured Rancher FQDN does not show you the UI, check the
```
kubectl -n ingress-nginx logs -l app=ingress-nginx
```
### Leader election
The leader is determined by a leader election process. After the leader has been determined, the leader (`holderIdentity`) is saved in the `cattle-controllers` ConfigMap (in this example, `rancher-7dbd7875f7-qbj5k`).
```
kubectl -n kube-system get configmap cattle-controllers -o jsonpath='{.metadata.annotations.control-plane\.alpha\.kubernetes\.io/leader}'
{"holderIdentity":"rancher-7dbd7875f7-qbj5k","leaseDurationSeconds":45,"acquireTime":"2019-04-04T11:53:12Z","renewTime":"2019-04-04T12:24:08Z","leaderTransitions":0}
```