Skip to content

Commit

Permalink
add keep vip in document (#108)
Browse files Browse the repository at this point in the history
* Update vip.md

* Update vip.en.md

* Update vip.md
  • Loading branch information
mingoooo authored Jul 20, 2023
1 parent a3cf55f commit 2ef65d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/advance/vip.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,9 @@ static-vip01 10.16.0.121 00:00:00:F0:DB:26 o
```

It can be seen that the VIP has been assigned the expected IP address.

## StatefulSet & Kubevirt VM keep VIP

Specify for `StatefulSet` and `VM` resources, these Pods their owned will reuse the VIP when these Pods recreating.

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)
6 changes: 6 additions & 0 deletions docs/advance/vip.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ spec:
- name: static-ip
image: docker.io/library/nginx:alpine
```

## StatefulSet 和 Kubevirt VM 保留 VIP

针对 `StatefulSet` 和 `VM` 的特殊性,在他们的 Pod 销毁再拉起起后会重新使用之前设置的 VIP。

VM 保留 VIP 需要确保 `kube-ovn-controller` 的 `keep-vm-ip` 参数为 `true`。请参考 [Kubevirt VM 固定地址开启设置](../guide/setup-options.md#kubevirt-vm)

0 comments on commit 2ef65d5

Please sign in to comment.