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?

Ubuntu で Kubernetes 三昧その5-2(Weave Net CNI)

Posted at

Ubuntu で Kubernetes 三昧その5-1(Weave Net CNI)の続き

いままで、Control Plane マシンを、マスターと呼んでいましたが、Control Plane(コントロールプレーン)
と呼ぶことにします。

@master1~# hostnamectl set-hostname controlplane1
exit

コントロールプレーンで、必要なポートが開いているか確かめます。

@controlplane1:~ sudo ufw status 
状態: 非アクティブ

ファイアウォールは稼働されていません。

@workernode1:~$ nc localhost 22 -zv -w 2
Connection to localhost (127.0.0.1) 22 port [tcp/ssh] succeeded!
@controlplane1:~$ nc 127.0.0.1 6443 -zv -w 2
Connection to 127.0.0.1 6443 port [tcp/*] succeeded!
@controlplane1:~$ nc 127.0.0.1 2379 -zv -w 2
Connection to 127.0.0.1 2379 port [tcp/*] succeeded!
@controlplane1:~$ nc 127.0.0.1 2380 -zv -w 2
nc: connect to 127.0.0.1 port 2380 (tcp) failed: Connection refused
@controlplane1:~$ nc 127.0.0.1 10250 -zv -w 2
Connection to 127.0.0.1 10250 port [tcp/*] succeeded!
@controlplane1:~$ nc 127.0.0.1 10259 -zv -w 2
Connection to 127.0.0.1 10259 port [tcp/*] succeeded!
@controlplane1:~$ nc 127.0.0.1 10257 -zv -w 2
Connection to 127.0.0.1 10257 port [tcp/*] succeeded!

ポート 2380 は使われて折らず、2379 が使われていると思うので、問題ないですね。

ワーカーノードで必要なポートの状態を確認します。

@workernode1:~$ nc localhost 10250 -zv -w 2
Connection to localhost (127.0.0.1) 10250 port [tcp/*] succeeded!
@workernode1:~$ nc localhost 10256 -zv -w 2
Connection to localhost (127.0.0.1) 10256 port [tcp/*] succeeded!
@workernode1:~$ nc localhost 30000-32767 -zv -w 2
nc: connect to localhost (127.0.0.1) port 30000 (tcp) failed: Connection refused
(...snip...)
nc: connect to localhost (127.0.0.1) port 32767 (tcp) failed: Connection refused

問題ない、と言えます。

つづく

参考:

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?