Linux系统安装Volcano教程
一、 系统版本信息:

二、安装git(/usr/local/kunyu.wu)
1) curl -LO https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.4.tar.xz
2) tar -xf git-2.9.4.tar.xz
3) cd git-2.9.4/ 键入命令:./configure prefix=/usr/local/kunyu.wu/git
4) make && make install Note:此时报错,下载两个库
5) yum install zlib
6) yum install zlib-devel
7) 继续 make && make installNote:此时又报错,继续下载缺失的包
8) sudo yum install perl-ExtUtils-MakeMaker
9) make && make install
10) vim /etc/profile

11) source /etc/profile
12) vim ~/.bash_profile

13) 查看一下 git --version
三、下载docker(工作目录为usr/loca/kunyu.wu/go_projects/src)
1) yum install -y yum-utils
2) sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3) sudo yum makecache fast
4) sudo yum install -y docker-ce
5) systemctl start docker
6) docker info
四、mv ./kind /usr/local/kunyu.wu/go_projects/src /kind
五、安装go(版本为最新版)
1) curl -LO https://golang.google.cn/dl/go1.16.5.linux-amd64.tar.gz
2) tar -xzvf go1.15.6.linux-amd64.tar.gz
3) 修改配置文件su root
vim /etc/profile
## 添加如下路径:
export GOROOT=/usr/local/kunyu.wu/software/go
export GOPATH=/usr/local/kunyu.wu/gopath
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GOPROXY=https://goproxy.cn
4) source /etc/profile
六、下载kubectl
1) curl -LO https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256
2) echo "$(<kubectl.sha256) kubectl" | sha256sum –check
3) sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
七、下载volcano(工作目录为usr/loca/kunyu.wu/go_projects/src)

八、安装volcano
1) 进入 hack/
2) bash local-up-volcano.sh(删除是后面加上-q)
3) 中间会报错(很明显本地没有把依赖库拉取到vendor中)

4) 输入 go mod vendor
5) 安装完成,查看镜像:docker images
6) 查看pod : kubectl get pod -A
九、安装argo: Argo Workflows-Kubernetes的工作流引擎 - 云+社区 - 腾讯云 (tencent.com)
1) kubectl create ns argo
2) kubectl apply -n argo -f https://raw.githubusercontent.com/argoproj/argo-workflows/stable/manifests/quick-start-postgres.yaml
3) kubectl get po -n argo
4) kubectl edit role argo-role.yaml -n argo
- apiGroups:
- batch.volcano.sh
resources:
- "*"
verbs:
- "*"
【Note】
- 软件版本要管理好。有些相互依赖的软件对版本是有要求的。不要随便找一个教程就跟着下载,最好是到官网找最新版本的。
- 在动手之前要有一个流程图,先干什么后干什么。不要来回兜圈子。
- Curl LO非常好用,在下载软件方面。
- go.mod很关键,要理解清楚的原理、与vendor的关系。
- local-up-volcano整个脚本可以读一下、了解一下kind

浙公网安备 33010602011771号