feat 修改k8s镜像仓库

This commit is contained in:
bing 2023-03-16 17:41:46 +08:00
parent c740258b24
commit 5bc94f98c2
3 changed files with 5 additions and 3 deletions

BIN
calicoctl Normal file

Binary file not shown.

View File

@ -41,5 +41,7 @@ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
### 安装calico
```bash
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
# kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/tigera-operator.yaml
kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.25.0/manifests/custom-resources.yaml
```

View File

@ -2,7 +2,7 @@
HTTPS_PROXY=$1
IMAGE_REGISTRY=$2
IMAGE_REGISTRY_USER=$3
IMAGES=$(kubeadm config images list | grep k8s.gcr.io)
IMAGES=$(kubeadm config images list | grep registry.k8s.io)
for IMAGE in ${IMAGES[@]}
do
echo "pull image ${IMAGE}"
@ -12,4 +12,4 @@ do
ctr images push -k -u ${IMAGE_REGISTRY_USER} ${IMAGE_REGISTRY}/${IMAGE_NAME}
# ctr images rm ${IMAGE}
done
#192.168.0.144:1080 ccr.ccs.tencentyun.com/kgcrio 100004225373:Hello2022
#192.168.0.144:1080 ccr.ccs.tencentyun.com/kgcrio 100004225373