title: How does Kubernetes create the Leases resource for an ETCD cluster to view the leader information?
body: <p>How does Kubernetes create the Leases resource for an ETCD cluster to view the leader information?</p>
  <pre><code>$ kubectl get leases
  NAME                      HOLDER                                                       AGE
  kube-controller-manager   master01.k8s-host.com_68f9a489-4e8c-4dc6-a9c2-6136d4cf7798   22h
  kube-scheduler            master01.k8s-host.com_b1a8a9a3-e2bb-4102-84a4-b046b8776bdb   21h
  </code></pre>
  <pre><code>$ kubectl version
  Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;20&quot;, GitVersion:&quot;v1.20.8&quot;, GitCommit:&quot;5575935422cc1cf5169dfc8847cb587aa47bac5a&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-06-16T13:00:45Z&quot;, GoVersion:&quot;go1.15.13&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
  </code></pre>
  <pre><code>$ etcd version
  etcd Version: 3.4.16
  Git SHA: d19fbe541
  Go Version: go1.12.17
  Go OS/Arch: linux/amd64
  </code></pre>