Skip to content

Commit 2ef65d5

Browse files
authored
add keep vip in document (#108)
* Update vip.md * Update vip.en.md * Update vip.md
1 parent a3cf55f commit 2ef65d5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/advance/vip.en.md

+6
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ static-vip01 10.16.0.121 00:00:00:F0:DB:26 o
5858
```
5959

6060
It can be seen that the VIP has been assigned the expected IP address.
61+
62+
## StatefulSet & Kubevirt VM keep VIP
63+
64+
Specify for `StatefulSet` and `VM` resources, these Pods their owned will reuse the VIP when these Pods recreating.
65+
66+
VM keep VIP must be enable the `keep-vm-ip` param in `kube-ovn-controller`. Refer [Kubevirt VM Fixed Address Settings](../guide/setup-options.en.md#kubevirt-vm)

docs/advance/vip.md

+6
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,9 @@ spec:
7878
- name: static-ip
7979
image: docker.io/library/nginx:alpine
8080
```
81+
82+
## StatefulSet 和 Kubevirt VM 保留 VIP
83+
84+
针对 `StatefulSet` 和 `VM` 的特殊性,在他们的 Pod 销毁再拉起起后会重新使用之前设置的 VIP。
85+
86+
VM 保留 VIP 需要确保 `kube-ovn-controller` 的 `keep-vm-ip` 参数为 `true`。请参考 [Kubevirt VM 固定地址开启设置](../guide/setup-options.md#kubevirt-vm)

0 commit comments

Comments
 (0)