建木CICD自动化部署环节
2023-09-11 本文已影响0人
sexy_cyber
-
新建Shell节点
image.png -
配置节点
image.png -
配置脚本
image.png
cd $EXE_PATH
sed -i "s/spider:[^[:space:]]*/spider:$DOCKER_IMAGE_TAG/" k8s.yml
apt update
apt install curl -y
curl -H "Authorization: Bearer TFq5LmM2w" \
-H "Content-Type: application/yaml" \
-X PUT \
--data-binary "@k8s.yml" \
https://www.sing.top/k8sapi/apis/apps/v1/namespaces/default/deployments/spiders