[*] 更新镜像
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 16s
All checks were successful
Build Docker Image / Explore-Gitea-Actions (push) Successful in 16s
This commit is contained in:
parent
b7706986de
commit
9faf6f2f1b
13
init-k8s.sh
13
init-k8s.sh
@ -49,7 +49,6 @@ sed -ri '0,/(config_path).*/s@(config_path).*@\1 = "/etc/containerd/certs.d"@' /
|
||||
sed -i 's/SystemdCgroup = false/SystemdCgroup = true/' /etc/containerd/config.toml
|
||||
|
||||
cat <<EOF >> /etc/containerd/config.toml
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri".registry]
|
||||
config_path = "/etc/containerd/certs.d"
|
||||
EOF
|
||||
@ -60,7 +59,7 @@ mkdir -pv "$CONFIG_DIR/docker.io"
|
||||
cat <<EOF > "$CONFIG_DIR/docker.io/hosts.toml"
|
||||
server = "https://docker.io"
|
||||
|
||||
[host."https://docker.martin98.com/docker"]
|
||||
[host."https://docker.martin98.com/v2/docker"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
@ -69,7 +68,7 @@ mkdir -pv "$CONFIG_DIR/k8s.gcr.io"
|
||||
cat <<EOF > "$CONFIG_DIR/k8s.gcr.io/hosts.toml"
|
||||
server = "https://k8s.gcr.io"
|
||||
|
||||
[host."https://docker.martin98.com/k8s"]
|
||||
[host."https://docker.martin98.com/v2/k8s"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
@ -78,7 +77,7 @@ mkdir -pv "$CONFIG_DIR/ghcr.io"
|
||||
cat <<EOF > "$CONFIG_DIR/ghcr.io/hosts.toml"
|
||||
server = "https://ghcr.io"
|
||||
|
||||
[host."https://docker.martin98.com/ghcr"]
|
||||
[host."https://docker.martin98.com/v2/ghcr"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
@ -87,7 +86,7 @@ mkdir -pv "$CONFIG_DIR/quay.io"
|
||||
cat <<EOF > "$CONFIG_DIR/quay.io/hosts.toml"
|
||||
server = "https://quay.io"
|
||||
|
||||
[host."https://docker.martin98.com/quay"]
|
||||
[host."https://docker.martin98.com/v2/quay"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
@ -96,13 +95,15 @@ mkdir -pv "$CONFIG_DIR/registry.k8s.io"
|
||||
cat <<EOF > "$CONFIG_DIR/registry.k8s.io/hosts.toml"
|
||||
server = "https://registry.k8s.io"
|
||||
|
||||
[host."https://docker.martin98.com/k8s"]
|
||||
[host."https://docker.martin98.com/v2/k8s"]
|
||||
capabilities = ["pull", "resolve"]
|
||||
override_path = true
|
||||
EOF
|
||||
|
||||
sudo systemctl restart containerd && sudo systemctl enable --now containerd
|
||||
|
||||
|
||||
# crictl --debug pull quay.io/k8scsi/csi-resizer:v0.5.0
|
||||
# 安装 kubeadm kubelet kubectl
|
||||
apt update && apt install -y kubeadm kubelet kubectl && apt-mark hold kubeadm kubelet kubectl
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user