随着 Kubernetes 成为现代应用部署的标准,KubeVirt 通过虚拟机支持进一步扩展了其能力。然而,当用户希望在虚拟机上启用 IPv4 和 IPv6 的双栈网络时,传统的 KubeVirt 桥接模式却存在以下限制:
- 不支持直接双栈网络配置;
```yaml
apiVersion: kubeovn.io/v1
kind: Subnet
metadata:
name: dual-stack-subnet
spec:
cidrBlock: "10.244.0.0/16,fd00:10:244::/64"
enableDHCP: true
enableIPv6RA: true
```
```
kubectl patch kubevirts -n kubevirt kubevirt --type=json -p=\
'[{"op": "add", "path": "/spec/configuration/network", "value": {
"binding": {
"managedtap": {
"domainAttachmentType": "managedTap"
}
}
}}]'
```
```
apiVersion: kubevirt.io/v1
kind: VirtualMachine
metadata:
name: dual-stack-vm
namespace: default
spec:
running: false
template:
spec:
domain:
devices:
interfaces:
name: default
binding:
name: managedtap
networks:
name: default
pod: {}
```
https://github.com/kubevirt/community/blob/main/design-proposals/primary_network_binding_for_seamless_migration.md#as-a-bridge-domainattachmenttype https://kubevirt.io/user-guide/network/network_binding_plugins/#domainattachmenttype https://github.com/kubevirt/kubevirt/pull/13024 https://kubeovn.github.io/docs/v1.14.x/advance/dhcp/?h=dhcp
Kube-OVN 项目资料
官网:
https://www.kube-ovn.io
GitHub:
https://github.com/kubeovn/kube-ovn
用户文档:
https://kubeovn.github.io/docs
Slack:
https://kube-ovn-slackin.herokuapp.com
微信群:
扫码加群
文章转载自KubeOVN社区。点击这里阅读原文了解更多。
CNCF概况(幻灯片)
扫描二维码联系我们!
CNCF (Cloud Native Computing Foundation)成立于2015年12月,隶属于Linux Foundation,是非营利性组织。
CNCF(云原生计算基金会)致力于培育和维护一个厂商中立的开源生态系统,来推广云原生技术。我们通过将最前沿的模式民主化,让这些创新为大众所用。请关注CNCF微信公众号。