<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Docs · Kylan</title>
    <link>https://superpowerman.dev/docs</link>
    <description>Notes on infrastructure, Kubernetes and Linux by Kylan. 基礎設施與雲原生的實作筆記。</description>
    <language>zh-Hant</language>
    <atom:link href="https://superpowerman.dev/rss.xml" rel="self" type="application/rss+xml" />
    <lastBuildDate>Thu, 26 Nov 2026 03:31:41 GMT</lastBuildDate>
    <item>
      <title>CNI 外掛鏈：一個 Pod 的網路是怎麼一站一站接起來的</title>
      <link>https://superpowerman.dev/docs/k8s-cni-plugin-chain</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/k8s-cni-plugin-chain</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>拆解 /etc/cni/net.d 的 conflist，看懂主外掛與 meta-plugin 怎麼用 prevResult 接力，並親手扮演 containerd 依序執行 bridge 與 portmap，替一個 netns 接好網路、開出 hostPort。</description>
      <category>Kubernetes</category>
      <category>CNI</category>
      <category>portmap</category>
      <category>containerd</category>
      <category>Networking</category>
    </item>
    <item>
      <title>Service 與 kube-proxy：ClusterIP 背後沒有負載平衡器</title>
      <link>https://superpowerman.dev/docs/k8s-service-kube-proxy</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/k8s-service-kube-proxy</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>在節點上逐條讀出 kube-proxy 寫的 KUBE-SERVICES、KUBE-SVC、KUBE-SEP 規則，看懂 ClusterIP 怎麼用 statistic 模組隨機挑 Pod、為什麼 ping 不通，以及常見故障的判斷方式。</description>
      <category>Kubernetes</category>
      <category>Service</category>
      <category>kube-proxy</category>
      <category>iptables</category>
      <category>Networking</category>
    </item>
    <item>
      <title>netfilter 與 conntrack：NAT 規則為什麼只要寫一個方向</title>
      <link>https://superpowerman.dev/docs/linux-netfilter-conntrack</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/linux-netfilter-conntrack</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>親手寫 DNAT 把主機的 8080 轉進 netns 裡的網站，看懂 netfilter 五個掛鉤點的位置、nat 表只看每條連線第一個封包的原因，以及 conntrack 帳本滿了會發生什麼事。</description>
      <category>Linux</category>
      <category>netfilter</category>
      <category>iptables</category>
      <category>conntrack</category>
      <category>NAT</category>
    </item>
    <item>
      <title>veth pair：每個 Pod 的 eth0 是怎麼接出來的</title>
      <link>https://superpowerman.dev/docs/linux-veth-pair</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/linux-veth-pair</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>用 veth pair 把兩個 network namespace 直接接起來，再改用 bridge 串接，理解 Pod 的 eth0 與主機上 veth 的對應關係，並用 iflink 找出 Pod 那條線在主機的哪一端抓包。</description>
      <category>Linux</category>
      <category>veth</category>
      <category>bridge</category>
      <category>netns</category>
      <category>Networking</category>
    </item>
    <item>
      <title>network namespace：一台 Linux 裡的獨立網路套房</title>
      <link>https://superpowerman.dev/docs/linux-network-namespace</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/linux-network-namespace</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>親手建兩個 network namespace，讓兩個程式同時聽 80 埠不衝突，看懂核心如何替每個程式記住它屬於哪一套網路，再用 nsenter 鑽進 Kubernetes Pod 的網路抓包。</description>
      <category>Linux</category>
      <category>netns</category>
      <category>Container</category>
      <category>Networking</category>
    </item>
    <item>
      <title>hostNetwork：不建 netns，讓 Pod 直接住進節點的網路</title>
      <link>https://superpowerman.dev/docs/k8s-hostnetwork</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/k8s-hostnetwork</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>設定 hostNetwork 的 Pod 不建自己的 network namespace、不跑 CNI，nginx 直接佔用節點的 80。用 netns inode、ss、iptables 逐一驗證，並與 hostPort 並排比較。</description>
      <category>Kubernetes</category>
      <category>hostNetwork</category>
      <category>netns</category>
      <category>CNI</category>
      <category>Networking</category>
    </item>
    <item>
      <title>VLAN-aware Linux bridge：帶 tag 的封包為什麼在 bridge 裡消失</title>
      <link>https://superpowerman.dev/docs/linux-bridge-vlan-filtering</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/linux-bridge-vlan-filtering</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>開了 VLAN 過濾的 Linux bridge 會替每個 port 記一份 VLAN 清單。以巢狀 PVE 跨主機 VLAN 不通為例，沿路抓包找出封包在外層 bridge 被丟掉，再用 trunks 修好。</description>
      <category>Linux</category>
      <category>linux-bridge</category>
      <category>VLAN</category>
      <category>proxmox-ve</category>
      <category>Networking</category>
    </item>
    <item>
      <title>Traefik：一個 HTTPS 請求怎麼從瀏覽器走到 Pod</title>
      <link>https://superpowerman.dev/docs/k8s-traefik</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/k8s-traefik</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>拆解以 DaemonSet 部署的 Traefik：DNS round-robin 挑節點、hostPort DNAT 把 443 交給 Traefik、SNI 挑憑證、Host 比對分流，最後不經 ClusterIP 直接送到 Pod。</description>
      <category>Kubernetes</category>
      <category>Traefik</category>
      <category>Ingress</category>
      <category>TLS</category>
      <category>Networking</category>
    </item>
    <item>
      <title>hostPort：節點上沒人在聽，封包怎麼進到 Pod</title>
      <link>https://superpowerman.dev/docs/k8s-hostport</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/k8s-hostport</guid>
      <pubDate>Thu, 26 Nov 2026 00:00:00 GMT</pubDate>
      <description>用一個 nginx Pod 把 80 埠透過 hostPort 開到節點的 8080，挖出 CNI portmap 外掛寫的 DNAT 規則，看懂封包怎麼從節點 IP 走進 Pod，以及同節點同埠只能一個 Pod 的原因。</description>
      <category>Kubernetes</category>
      <category>hostPort</category>
      <category>CNI</category>
      <category>iptables</category>
      <category>Networking</category>
    </item>
    <item>
      <title>Logical Volume Manager：把兩顆硬碟合成一顆給 NFS 用</title>
      <link>https://superpowerman.dev/docs/lvm-nfs</link>
      <guid isPermaLink="true">https://superpowerman.dev/docs/lvm-nfs</guid>
      <pubDate>Wed, 25 Nov 2026 00:00:00 GMT</pubDate>
      <description>用 LVM 把兩顆獨立硬碟合成一個大空間，格式化成 XFS 後透過 NFS 分享給 Kubernetes 叢集，並示範空間不夠時如何線上放大。</description>
      <category>Linux</category>
      <category>LVM</category>
      <category>NFS</category>
      <category>Storage</category>
    </item>
  </channel>
</rss>
