---
# System prepended metadata

title: cluster IP 設定

---

# cluster IP 設定

:::info 
:bulb: **hint**
網卡設定請到VMM裡面對照 ip a / route -n 查看以下僅提供參考範例
:::

## K8s (10.52.52.164)
/etc/netplan/01-network-manager-all.yaml
![](https://i.imgur.com/qlrKtnw.png)



## node1 (10.52.55.1)
/etc/netplan/01-network-manager-all.yaml
![](https://i.imgur.com/5DTO49i.png)


## node2 (10.52.55.4)
/etc/netplan/01-network-manager-all.yaml
![](https://i.imgur.com/U67GefU.png)

## master (10.52.55.2)
/etc/netplan/01-network-manager-all.yaml
![](https://i.imgur.com/YxU2Nvy.png)

## kafka (10.52.55.3)
/etc/netplan/01-network-manager-all.yaml
![](https://i.imgur.com/pQEeXoW.png)

## NAT (10.52.55.254)
/etc/config/network 
![](https://i.imgur.com/IRNzlLk.png)

- 這邊我只有改動 lan / wan 的ipaddr 其他照學長設定
- 另外注意NAT網卡使用k8s enp4s0的網卡->**macvtap0@enp4s0**;簡單說NAT直接使用K8s的**enp4s0**當網卡