<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Lease on Inkwell Corner</title>
    <link>https://xhyyx.pages.dev/tags/lease/</link>
    <description>Recent content in Lease on Inkwell Corner</description>
    <image>
      <title>Inkwell Corner</title>
      <url>https://i.postimg.cc/7hwBy7VS/calcr.png</url>
      <link>https://i.postimg.cc/7hwBy7VS/calcr.png</link>
    </image>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>©2026 Inkwell Corner</copyright>
    <lastBuildDate>Fri, 23 Feb 2024 15:48:38 +0800</lastBuildDate>
    <atom:link href="https://xhyyx.pages.dev/tags/lease/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Kubernetes leader election 源码分析</title>
      <link>https://xhyyx.pages.dev/posts/kubernetes-leader-election/</link>
      <pubDate>Fri, 23 Feb 2024 15:48:38 +0800</pubDate>
      <guid>https://xhyyx.pages.dev/posts/kubernetes-leader-election/</guid>
      <description>&lt;h1 id=&#34;前言&#34;&gt;前言&lt;/h1&gt;
&lt;p&gt;&lt;a href=&#34;https://www.cnblogs.com/xingzheanan/p/18000774&#34;&gt;Kubernetes:kube-scheduler 源码分析&lt;/a&gt; 介绍了 &lt;code&gt;kube-scheduler&lt;/code&gt; 调度 Pod 的逻辑。文中有一点未提的是，在 &lt;code&gt;Kubernetes&lt;/code&gt; 集群中，&lt;code&gt;kube-scheduler&lt;/code&gt; 组件是多副本，单实例运行。仅有一个副本作为 leader 运行，当发生故障时，其它副本会抢占为 leader 继续运行。这种机制通过 leader election 实现，本文将从源码角度分析 leader election 选举的实现。并且，在此基础上，在回头看 &lt;code&gt;kube-scheduler&lt;/code&gt; 是怎么结合 &lt;code&gt;leader elction&lt;/code&gt; 实现多副本，单实例运行的。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
