-
新建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
网友评论