0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Konnectivityで実現!クラウドにあるControl Planeからオンプレやローカルにあるクラスタへの接続を確立するか」

Last updated at Posted at 2025-05-22

🔥 Kubernetesのネットワーク問題を解決!

みなさん、こんにちは!今日はKubernetesの世界で「どうやってクラウドにあるcontrol planeからオンプレやローカルにあるクラスタへの接続を確立するか」という課題に革命を起こしたKonnectivityについて紹介します!

💡 単方向通信の仕組み

Konnectivityの仕組みはシンプル!

  1. 単方向接続化: nodeからcontrol planeへ接続を開始
  2. Proxy(gRPC or TCP)の魔法: 双方向ストリームで通信を確立
  3. トンネリング技術: 一度確立した接続を使い回す

🚀 通信フローを図解!

Node側 (Agent) -----接続開始-----> Control Plane側 (Server)
      ↑                                 ↓
      |                                 |
      ←-----双方向データ通信---------------→

🔍 プロトコルの部分

gRPCで実現するKonnectivityはAgentService.Connectという双方向ストリームRPCで全てのControl Planeからの通信をトンネリングします。

利用シナリオ

  • kubectl execやkubectl logsのようなコマンドを実行する場合
  • APIサーバーがクラスタ内のWebhookやAggregation API Service、metrics-serverにアクセスする必要がある場合
  • コントロールプレーンとワーカーノードが分離されたネットワークに存在する場合

🏁 まとめ

Konnectivityは「接続は一方向、通信は双方向」というアプローチでcontrol planeからクラスタへの通信の方向の問題を解決しています。

参考

Konnectivity サービスのセットアップ | Kubernetes

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?