Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Kubernetes: Utilize Secondary Network
Search
YushoYamaguchi
June 15, 2026
26
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Kubernetes: Utilize Secondary Network
YushoYamaguchi
June 15, 2026
More Decks by YushoYamaguchi
See All by YushoYamaguchi
Performance tuning of VMM using KVM
yushoyamaguchi
0
490
OpenStack Tenant Network Isolation: Considerations and Practical Examples
yushoyamaguchi
0
410
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
230
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
250
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2k
What's in a price? How to price your products and services
michaelherold
247
13k
Design in an AI World
tapps
1
260
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Navigating Team Friction
lara
192
16k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
240
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
How to Ace a Technical Interview
jacobian
281
24k
Transcript
K8s Secondary Network Yamaguchi Yusho 1
K8s Network の機能 Worker Pod Serviceを使った Ingress通信 kube-proxy またはその代替 (VIP
or Node IP) と Pod IP の NAT North-South通信 (主にEgress) CNI Plugin付加機能 or 独自サービス Routing or NAT East-West通信 CNI Plugin付加機能 Routing or Overlay I/F Pod I/F 2
K8s Network の制約 • Podにアタッチされるインターフェースは1つのみ • 固定IPとは極めて相性が悪い • Ingress通信はServiceで引き入れる前提 3
K8s標準のNetwork機能で足りないケース • 複数のインターフェースを持つPodがほしいケース • 通信用途によって面を分けたいケースとか • ↑L3フラット化できないならK8s使うなよ • ↑結局VLANで面作って物理線共用するなら、面を分ける意味とは? •
例) NFV • Pod自体の固定IPを使ってクラスタ外部と通信したいケース • 分散システムの一部だけをK8s上に置くケースとか • K8s使うなら、完全に同一クラスタ上にシステムを載せきる方が嬉しさが大きい • 例) NFV • 性能観点からWorkerのNICをそのままPodに見せたいケース • 例) AI学習基盤、NFV 4
セカンダリNW • Podに2つめ以降のインターフェースを付けるための仕組み • Multusという特殊なソフトウェアを使う • CNI Pluginを複数回呼び出すための仕組み • IPアドレスの管理等も完全に独自でやる前提(K8s側は関知しない)
• 課題: 作ったセカンダリに対して、K8s標準NWと同じような機 能群をもうひとつ用意するのは難しい • WorkerのRouting/iptablesなどを触るので、プライマリ側の機能を壊 さずセカンダリ側を作るのが難しい • そういう実装を用意しているCNI Pluginはほぼない 5
セカンダリNWの主な使われ方 • WorkerインターフェースのブロードキャストドメインにPodを 参加させる 2nd IF 2nd IF Worker I/F
Worker I/F ipvlan/macvlanなどが よく使われる 6
CNI Pluginの実装は? • 標準のCNI Pluginを使う • Podインターフェースをホストのインターフェースに紐づける • K8sに依存しないナイーブな意味でのCNI Pluginたち
• 余談: CNI PluginとしてはCilium/Calicoとかの方が邪道とも言 える • Podにインターフェースを付ける動作がK8s(上で動く独自サービス)に 依存している 7
実用的な使い方 • ブロードキャストドメイン共有なので、面を分けたい時に苦し い(用途で分ける/マルチテナント) • 面を用意するごとに物理インターフェースをノードにつけるのは非現 実的 • → 面ごとにVLANをDCNW/ホストの両側で準備する
• これはDCNW側とサーバ側が逐一連携する必要があるので、運 用がスケールしない • とても苦しい 8
K8s on OpenStackの場合 • (Worker は OpenStack VM) • Workerにネットワークを好きなだけオンデマンドで引ける
• 弊社環境だとOpenStackのVPCが仮想L2ネットワークなので、まさに ブロードキャストドメインをオンデマンドで用意するのにぴったり • セカンダリネットワークを用意する理由が性能ではない場合は、 とてもよい選択肢だと確信している 9