kubernetes 1.18.20部署 kubevirt v0.47.1
kubevirt-operator-v0.47.1.yml测试环境资源不够,把 replicas 设置成1---apiVersion: v1kind: Namespacemetadata:labels:kubevirt.io: ""name: kubevirt---apiVersion: apiextensions.k8s.io/v1kind: CustomResourceDefinitionme
·
kubevirt-operator-v0.47.1.yml
export RELEASE=v0.47.1
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${RELEASE}/kubevirt-operator.yaml
kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/${RELEASE}/kubevirt-cr.yaml
enable-feature-gate.yaml
开启 hostDisk等特性。
如果不支持硬件虚拟化,打开注释,使用模拟。
apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
namespace: kubevirt
spec:
configuration:
developerConfiguration:
featureGates:
- HostDisk
- hyperv
- CPUNodeDiscovery
#useEmulation: true
kubectl apply -f enable-feature-gate.yaml
官方文档:https://kubevirt.io/user-guide/operations/installation/
安装 kvm
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser `id -un` libvirt
sudo adduser `id -un` kvm
sudo apt-get install virt-manager
官方文档:https://help.ubuntu.com/community/KVM/Installation
更多推荐
已为社区贡献10条内容
所有评论(0)