https://github.com/poneding/virt-vnc-controller
virt-vnc-controller 监听 kubevirt VirtualMachine 资源的创建,自动生成虚拟机 virt-vnc 服务。
https://github.com/poneding/virt-vnc-controller
Last synced: 13 days ago
JSON representation
virt-vnc-controller 监听 kubevirt VirtualMachine 资源的创建,自动生成虚拟机 virt-vnc 服务。
- Host: GitHub
- URL: https://github.com/poneding/virt-vnc-controller
- Owner: poneding
- Created: 2024-05-10T07:17:59.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-11T06:36:20.000Z (about 2 years ago)
- Last Synced: 2024-05-11T07:34:07.878Z (about 2 years ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# virt-vnc-controller
virt-vnc-controller 监听 kubevirt VirtualMachine 资源的创建,自动生成虚拟机 virt-vnc 服务。
virt-vnc: [poneding/virt-vnc](https://github.com/poneding/virt-vnc)
## 部署
```bash
kubectl apply -f https://raw.githubusercontent.com/poneding/virt-vnc-controller/master/deploy/manifests.yaml
```
等待部署完成:
```bash
kubectl get pod -n virt-vnc -w
```
## 测试
Note: 需要集群可以正常创建 Kubevirt 虚拟机。
```bash
kubectl apply -f https://raw.githubusercontent.com/poneding/virt-vnc-controller/master/deploy/cirros-vm.yaml
```
观察是否能正常创建 virt-vnc 服务:
```bash
kubectl get pod -n test -w
```
现在可以访问 virt-vnc 服务来查看虚拟机的图形界面。
清理:
```bash
kubectl delete -f https://raw.githubusercontent.com/poneding/virt-vnc-controller/master/deploy/cirros-vm.yaml
```
虚拟机删除后,virt-vnc-controller 会自动回收相关资源。
## 卸载
```bash
kubectl delete -f https://raw.githubusercontent.com/poneding/virt-vnc-controller/master/deploy/manifests.yaml
```