Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Kubernetes: Utilize Secondary Network
Search
YushoYamaguchi
June 15, 2026
43
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
590
OpenStack Tenant Network Isolation: Considerations and Practical Examples
yushoyamaguchi
0
450
Featured
See All Featured
Accessibility Awareness
sabderemane
1
230
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.6k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.4k
Typedesign – Prime Four
hannesfritz
42
3.2k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
530
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
620
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
520
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
1.1k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
4
1.2k
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