Post

Kubernetes - VMware 네트워크 설정

Kubernetes 기초

Kubernetes - VMware 네트워크 설정

vmware 고정 IP설정

Ubuntu, centOS 등 여러 OS와 버전마다 방법이 다르다.

VMWARE 네트워크 NAT설정

Image

각 Node들 Setting

Image

NetPlan 구성

/etc/netplan 폴더에 있는 yaml을 고쳐준다.

1
2
3
4
5
6
7
8
9
10
11
12
# Let NetworkManager manage all devices on this system
network:
  ethernets:
          ens33:
                  dhcp4: no
                  dhcp6: no
                  addresses:
                  - 192.168.75.151/24
                  gateway4: 192.168.75.2
                  nameservers:
                           addresses: [8.8.8.8]
  version: 2

addresses 부분은 본인이 원하는 고정 IP

gateway는 위에서 얻었던 IP값을 가져오면된다.

dhcp는 IP 동적할당으로 생각하면된다 → 따라서 no옵션

nameservers 는 DNS서버다 8.8.8.8은 google public DNS 서버입니다.

Netplan 적용

1
sudo netplan apply
This post is licensed under CC BY 4.0 by the author.