[*] fix debian-security 源
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 10s
This commit is contained in:
10
init-k8s.sh
10
init-k8s.sh
@@ -84,6 +84,15 @@ server = "https://k8s.gcr.io"
|
||||
override_path = true
|
||||
EOF
|
||||
|
||||
mkdir -pv "$CONFIG_DIR/gcr.io"
|
||||
cat <<EOF > "$CONFIG_DIR/gcr.io/hosts.toml"
|
||||
server = "https://gcr.io"
|
||||
|
||||
[host."https://docker.martin98.com/v2/gcr"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
|
||||
mkdir -pv "$CONFIG_DIR/ghcr.io"
|
||||
cat <<EOF > "$CONFIG_DIR/ghcr.io/hosts.toml"
|
||||
server = "https://ghcr.io"
|
||||
@@ -111,6 +120,7 @@ server = "https://registry.k8s.io"
|
||||
override_path = true
|
||||
EOF
|
||||
|
||||
# crictl --debug pull quay.io/k8scsi/csi-resizer:v0.5.0
|
||||
sudo systemctl restart containerd && sudo systemctl enable --now containerd
|
||||
|
||||
# 安装 kubeadm kubelet kubectl
|
||||
|
||||
Reference in New Issue
Block a user