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 三昧その2

Last updated at Posted at 2025-06-20

Ubuntu で Kubernetes 三昧その1の続きです。

MACアドレスとUUIDの値がユニークであることを確認します。
マスターノードで

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 08:00:27:9e:cb:2f brd ff:ff:ff:ff:ff:ff

$ sudo cat /sys/class/dmi/id/product_uuid
30f05dee-44f6-0a4d-ae10-65bf368cb4c2

ワーカーノードで

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 08:00:27:b2:38:f1 brd ff:ff:ff:ff:ff:ff

$ sudo cat /sys/class/dmi/id/product_uuid
144ae75e-cda0-564f-938d-762818b689bb

Kubernetesが使用するポートに関しては、こちら
とりあえず、オープンできていないようだ。

$ nc 127.0.0.1 6443 -zv -w 2
nc: connect to 127.0.0.1 port 6443 (tcp) failed: Connection refused
$ free
               total        used        free      shared  buff/cache   available
Mem:         4008872     1327468     1986072       39976      956872     2681404
Swap:        4007932           0     4007932
fujiwara@masternode1:~$ sudo swapoff -a
fujiwara@masternode1:~$ free
               total        used        free      shared  buff/cache   available
Mem:         4008872     1324340     1989140       39976      956916     2684532
Swap:              0           0           0

仮想マシンリセットすると元に戻っている。

$ free
               total        used        free      shared  buff/cache   available
Mem:         4008872     1190172     2228376       36280      847396     2818700
Swap:        4007932           0     4007932

fstab 編集

/dev/disk/by-uuid/590ed445-1860-4655-aaa4-4e022464c16f / ext4 defaults 0 1
#/swap.img      none    swap    sw      0       0 <<--- コメントアウト

仮想マシンリセット

$ free
               total        used        free      shared  buff/cache   available
Mem:         4008872     1164260     2253108       36112      848520     2844612
Swap:              0           0           0

worker マシンでも上記を同様におこなう。

Ubuntu で Kubernetes 三昧その3に続く。

参考:

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?