Skip to content

Commit beaadc5

Browse files
committed
feat: update the check requred ports section in install-kubeadm.md
1 parent abef5d4 commit beaadc5

File tree

3 files changed

+55
-22
lines changed

3 files changed

+55
-22
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Networking Reference
3+
content_type: reference
4+
weight: 85
5+
---
6+
7+
<!-- overview -->
8+
このセクションでは、Kubernetes networkingの詳細を提供します。
9+
10+
<!-- body -->
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: Ports and Protocols
3+
content_type: reference
4+
weight: 40
5+
---
6+
7+
パブリッククラウドにおける仮想ネットワークや、物理ネットワークファイアウォールを持つオンプレミスのデータセンターのようなネットワークの境界が厳しい環境でKubernetsを実行する場合、
8+
Kubernetesのコンポーネントが使用するポートやプロトコルを認識しておくと便利です。
9+
10+
## Control plane
11+
12+
13+
| プロトコル | 通信の向き | ポート範囲 | 目的 | 使用者 |
14+
|------------|------------|-------------|-------------------------|---------------------------|
15+
| TCP | Inbound | 6443 | Kubernetes API server | All |
16+
| TCP | Inbound | 2379-2380 | etcd server client API | kube-apiserver, etcd |
17+
| TCP | Inbound | 10250 | Kubelet API | Self, Control plane |
18+
| TCP | Inbound | 10259 | kube-scheduler | Self |
19+
| TCP | Inbound | 10257 | kube-controller-manager | Self |
20+
21+
etcdポートはコントロールプレーンノードに含まれていますが、独自のetcdクラスターを外部またはカスタムポートでホストすることもできます。
22+
23+
## Worker node(s) {#node}
24+
25+
| プロトコル | 通信の向き | ポート範囲 | 目的 | 使用者 |
26+
|------------|------------|-------------|-----------------------|-------------------------|
27+
| TCP | Inbound | 10250 | Kubelet API | Self, Control plane |
28+
| TCP | Inbound | 30000-32767 | NodePort Services† | All |
29+
30+
† デフォルトポートの範囲は[NodePort Services](/ja/docs/concepts/services-networking/service/)を参照。
31+
32+
33+
すべてのデフォルトのポート番号が書き換え可能です。
34+
カスタムポートを使用する場合、ここに記載されているデフォルトではなく、それらのポートを開く必要があります。
35+
36+
よくある例としては、API Serverのポートを443に変更することがあります。
37+
または、デフォルトポートをそのままにし、API Serverを443でリッスンしているロードバランサーの後ろに置き、APIサーバのデフォルトポートにリクエストをルーティングする方法もあります。
38+

content/ja/docs/setup/production-environment/tools/kubeadm/install-kubeadm.md

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,30 +50,15 @@ card:
5050

5151
## 必須ポートの確認
5252

53-
### コントロールプレーンノード
53+
Kubernetesのコンポーネントが互いに通信するためには、これらの[必要なポート](/ja/docs/reference/networking/ports-and-protocols/)が開いている必要があります。
54+
netcatなどのツールを使用することで、下記のようにポートが開いているかどうかを確認することが可能です。
5455

55-
| プロトコル | 通信の向き | ポート範囲 | 目的 | 使用者 |
56-
|-----------|------------|------------|-------------------------|---------------------------|
57-
| TCP | Inbound | 6443* | Kubernetes API server | 全て |
58-
| TCP | Inbound | 2379-2380 | etcd server client API | kube-apiserver、etcd |
59-
| TCP | Inbound | 10250 | Kubelet API | 自身、コントロールプレーン |
60-
| TCP | Inbound | 10259 | kube-scheduler | 自身 |
61-
| TCP | Inbound | 10257 | kube-controller-manager | 自身 |
62-
63-
### ワーカーノード
64-
65-
| プロトコル | 通信の向き | ポート範囲 | 目的 | 使用者 |
66-
|-----------|------------|-------------|-------------------------|---------------------------|
67-
| TCP | Inbound | 10250 | Kubelet API | 自身、コントロールプレーン |
68-
| TCP | Inbound | 30000-32767 | NodePort Service† | 全て |
69-
70-
[NodePort Service](/ja/docs/concepts/services-networking/service/)のデフォルトのポートの範囲
71-
72-
\*の項目は書き換え可能です。そのため、あなたが指定したカスタムポートも開いていることを確認する必要があります。
73-
74-
etcdポートはコントロールプレーンノードに含まれていますが、独自のetcdクラスターを外部またはカスタムポートでホストすることもできます。
56+
```shell
57+
nc 127.0.0.1 6443
58+
```
7559

76-
使用するPodネットワークプラグイン(以下を参照)のポートも開く必要があります。これは各Podネットワークプラグインによって異なるため、必要なポートについてはプラグインのドキュメントを参照してください。
60+
使用するpod network pluginによっては、特定のポートを開く必要がある場合もあります。
61+
これらは各pod network pluginによって異なるため、どのようなポートが必要かについては、pluginのドキュメントを参照してください。
7762

7863
## ランタイムのインストール {#installing-runtime}
7964

0 commit comments

Comments
 (0)