WorkingTipsOnRongRobot
Oct 29, 2020
Technology
Building
In Azure Devops, Create new project:
Create pipeline:
Select code for GitHub
:
Authorized AzurePipeLines:
Select Repository:
Click Run
:
View Status:
Running Status:
Check Result:
Check Artifacts:
Download Artifacts:
Patching
Static file Patching
After download:
$ ls *
RobotSon.tar.gz
data:
docker
release:
calicoctl cni-plugins-linux-amd64-v0.8.7.tgz kubeadm-v1.19.3-amd64 kubectl-v1.19.3-amd64 kubelet-v1.19.3-amd64
zip docker.tar.gz
(place in pre-rong/rong_static/for_master0/docker.tar.gz
)
$ cd data
$ tar czf docker.tar.gz docker/
Copy releases
folder to folder(pre-rong/rong_static/for_cluster/
)
$ ls pre-rong/rong_static/for_cluster/
calicoctl cni-plugins-linux-amd64-v0.8.7.tgz docker gpg kubeadm-v1.18.8-amd64 kubectl-v1.18.8-amd64 kubelet-v1.18.8-amd64 netdata-v1.22.1.gz.run
Code Patching
下载patch文件:
# git clone https://github.com/kubernetes-sigs/kubespray.git
# cd kubespray
# git checkout tags/v2.xx.0 -b xxxx
# git apply --check ../patch
检查是否有错
v1.19(master)需要exclude以下两个文件
# git apply /root/patch --exclude=roles/kubernetes-apps/helm/templates/tiller-clusterrolebinding.yml.j2 --exclude=roles/remove-node/remove-etcd-node/tasks/main.yml
部署框架内少量修改
rong-vars.yml
:
rong/1_preinstall/role/preinstall/task/main.yml
: