Browse Source

feat 修改k8s镜像仓库

master
bing 2 years ago
parent
commit
5bc94f98c2
  1. BIN
      calicoctl
  2. 4
      kubernetes/installation/readme.md
  3. 4
      kubernetes/installation/scripts/get_images.sh

BIN
calicoctl

Binary file not shown.

4
kubernetes/installation/readme.md

@ -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
```

4
kubernetes/installation/scripts/get_images.sh

@ -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
Loading…
Cancel
Save