volcano k8s 部署
下载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
替换国外镜像
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
containerd常用命令
https://blog.csdn.net/chililopp/article/details/140288670