大佬教程收集整理的这篇文章主要介绍了如何到达 kubernetes pod 内的 spice 服务器?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个运行 Ubuntu 映像的 docker 容器,然后通过 qemu-sy@R_301_6563@-x86_64 运行 windows 虚拟机。
我可以通过与 docker 容器共享一个端口来使用 spice 访问 windows vm,然后我告诉 qemu-sy@R_301_6563@-x86_64 使用该端口进行 spice。
运行容器:
docker run -p 5930:5930...
容器内部:
qemu-sy@R_301_6563@-x86_64 -spice port=5930,disable-tickeTing...
这可以通过使用此地址在同一 VPN 上的远程机器上工作:
spice://<server ip>:5930
我现在在 minikube 内的 kubernetes pod 中运行了这个容器,但我不确定使用哪种服务来远程访问 spice 服务器。
使用 microk8s。将您的容器放入 pod 并使用 NodePort 创建服务。
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: my-pod
image: image here
ports:
- containerPort: 5930
apiVersion: v1
kind: service
metadata:
name: my-service
spec:
type: NodePort
SELEctor:
app: my-pod
ports:
- port: 5930
nodePort: 30000
现在调用 http://server_ip:30000
以上是大佬教程为你收集整理的如何到达 kubernetes pod 内的 spice 服务器?全部内容,希望文章能够帮你解决如何到达 kubernetes pod 内的 spice 服务器?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。