下载volcano-development文件
官网
https://volcano.sh/zh/docs/installation/
volcano-development.yaml
wget https://raw.githubusercontent.com/volcano-sh/volcano/master/installer/volcano-development.yaml
部署volcano
查下需要下载的镜像
grep vc- volcano-development.yaml
image: docker.io/volcanosh/vc-webhook-manager:latest
image: docker.io/volcanosh/vc-webhook-manager:latest
image: docker.io/volcanosh/vc-controller-manager:latest
image: docker.io/volcanosh/vc-scheduler:latest
下载镜像
ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/volcanosh/vc-webhook-manager:latest
ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/volcanosh/vc-scheduler:latest
ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/volcanosh/vc-controller-manager:latest
docker pull registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-webhook-manager:1.0
docker pull registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-controller-manager:1.0
docker pull registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-scheduler:1.0
docker save -o vc-webhook-manager.tar registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-webhook-manager:1.0
docker save -o vc-controller-manager.tar registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-controller-manager:1.0
docker save -o vc-scheduler.tar registry.cn-hangzhou.aliyuncs.com/zdhx-harbor/vc-scheduler:1.0
scp vc-webhook-manager.tar root@10.0.2.12:/root
scp vc-controller-manager.tar root@10.0.2.12:/root
scp vc-scheduler.tar root@10.0.2.12:/root
docker load -i vc-webhook-manager.tar
docker load -i vc-controller-manager.tar
docker load -i vc-scheduler.tar
ctr image pull docker.unsee.tech/volcanosh/vc-scheduler:v1.10.0
ctr image pull docker.unsee.tech/volcanosh/vc-scheduler:v1.10.0
ctr image pull docker.unsee.tech/volcanosh/vc-scheduler:v1.10.0
代理镜像源
https://www.coderjia.cn/archives/dba3f94c-a021-468a-8ac6-e840f85867ea
替换国外镜像
sed -i 's/docker.io\/volcanosh\/vc-webhook-manager:latest/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-webhook-manager:latest/g' volcano-development.yaml
sed -i 's/docker.io\/volcanosh\/vc-controller-manager:latest/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-controller-manager:latest/g' volcano-development.yaml
sed -i 's/docker.io\/volcanosh\/vc-scheduler:latest/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-scheduler:latest/g' volcano-development.yaml
sed -i 's/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-webhook-manager:latest/registry.cn-hangzhou.aliyuncs.com\/zdhx-harbor\/vc-webhook-manager:1.0/g' volcano-development.yaml
sed -i 's/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-controller-manager:latest/registry.cn-hangzhou.aliyuncs.com\/zdhx-harbor\/vc-controller-manager:1.0/g' volcano-development.yaml
sed -i 's/swr.cn-north-4.myhuaweicloud.com\/ddn-k8s\/docker.io\/volcanosh\/vc-scheduler:latest/registry.cn-hangzhou.aliyuncs.com\/zdhx-harbor\/vc-scheduler:1.0/g' volcano-development.yaml
部署
kubectl apply -f volcano-development.yaml
验证Volcano组件的状态
kubectl get all -n volcano-system
volcano-controllers如果启动状态有错,使用如下命令查看日志
kubectl logs pods/volcano-controllers-7f7776d576-zqzgq -n volcano-system
如果提示unknown flag: --enable-metrics
;则注释volcano-controllers
如下配置项再启动即可
#- --enable-metrics=true
containerd常用命令
https://blog.csdn.net/chililopp/article/details/140288670
k8s学习项目
https://devpress.csdn.net/k8s/66c991bd13e4054e7e7d48da.html