mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
fix: delete ip addr bind for kube_vip (#2598)
Signed-off-by: joyceliu <joyceliu@yunify.com>
This commit is contained in:
parent
38b8d04617
commit
cec2e1a200
|
|
@ -36,4 +36,4 @@
|
|||
when: eq .kubernetes.control_plane_endpoint.type "kube_vip"
|
||||
command: |
|
||||
ip neigh show | grep {{ .kubernetes.control_plane_endpoint.kube_vip.address }} | awk '{print $1 " dev " $3}' | xargs -r -L1 ip neigh delete
|
||||
|
||||
ip -o addr show | grep {{ .kubernetes.control_plane_endpoint.kube_vip.address }} | awk '{system("ip addr del "$4" dev "$2)}'
|
||||
|
|
|
|||
|
|
@ -36,4 +36,4 @@
|
|||
when: eq .kubernetes.control_plane_endpoint.type "kube_vip"
|
||||
command: |
|
||||
ip neigh show | grep {{ .kubernetes.control_plane_endpoint.kube_vip.address }} | awk '{print $1 " dev " $3}' | xargs -r -L1 ip neigh delete
|
||||
|
||||
ip -o addr show | grep {{ .kubernetes.control_plane_endpoint.kube_vip.address }} | awk '{system("ip addr del "$4" dev "$2)}'
|
||||
|
|
|
|||
Loading…
Reference in New Issue