mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-26 04:58:07 +00:00
Apply changes to versioned docs for 2.8
This commit is contained in:
@@ -74,10 +74,15 @@ kubectl -n ingress-nginx logs -l app=ingress-nginx
|
|||||||
|
|
||||||
### Leader election
|
### 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`).
|
The leader is determined by a leader election process. After the leader has been determined, the leader (`holderIdentity`) is saved in the `cattle-controllers` Lease in the `kube-system` namespace (in this example, `rancher-dbc7ff869-gvg6k`).
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl -n kube-system get configmap cattle-controllers -o jsonpath='{.metadata.annotations.control-plane\.alpha\.kubernetes\.io/leader}'
|
kubectl -n kube-system get lease cattle-controllers
|
||||||
{"holderIdentity":"rancher-7dbd7875f7-qbj5k","leaseDurationSeconds":45,"acquireTime":"2019-04-04T11:53:12Z","renewTime":"2019-04-04T12:24:08Z","leaderTransitions":0}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example output:
|
||||||
|
|
||||||
|
```
|
||||||
|
NAME HOLDER AGE
|
||||||
|
cattle-controllers rancher-dbc7ff869-gvg6k 6h10m
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user