mirror of https://github.com/easzlab/kubeasz.git
update container image mirror site #1192
parent
a7f467449a
commit
5a01a252bf
|
@ -1,4 +1,4 @@
|
|||
# 安装 gitlab
|
||||
# 安装 gitlab [Deprecated]
|
||||
|
||||
gitlab 是深受企业用户喜爱的基于 git 的代码管理系统。安装 gitlab 最理想的方式是利用 gitlab charts 部署到 k8s 集群上,但此方式还未成熟,期待后续推出更成熟稳定版本;本文使用 Docker 方式安装 gitlab:
|
||||
|
||||
|
|
4
ezdown
4
ezdown
|
@ -143,8 +143,8 @@ EOF
|
|||
{
|
||||
"exec-opts": ["native.cgroupdriver=$CGROUP_DRIVER"],
|
||||
"registry-mirrors": [
|
||||
"https://docker.mirrors.ustc.edu.cn",
|
||||
"http://hub-mirror.c.163.com"
|
||||
"https://docker.nju.edu.cn/",
|
||||
"https://kuamavit.mirror.aliyuncs.com"
|
||||
],
|
||||
"insecure-registries": ["http://easzlab.io.local:5000"],
|
||||
"max-concurrent-downloads": 10,
|
||||
|
|
|
@ -146,13 +146,17 @@ version = 2
|
|||
endpoint = ["http://easzlab.io.local:5000"]
|
||||
{% if ENABLE_MIRROR_REGISTRY %}
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
|
||||
endpoint = ["https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com"]
|
||||
endpoint = ["https://docker.nju.edu.cn/", "https://kuamavit.mirror.aliyuncs.com"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."gcr.io"]
|
||||
endpoint = ["https://gcr.mirrors.ustc.edu.cn"]
|
||||
endpoint = ["https://gcr.nju.edu.cn"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."k8s.gcr.io"]
|
||||
endpoint = ["https://gcr.mirrors.ustc.edu.cn/google-containers/"]
|
||||
endpoint = ["https://gcr.nju.edu.cn/google-containers/"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."quay.io"]
|
||||
endpoint = ["https://quay.mirrors.ustc.edu.cn"]
|
||||
endpoint = ["https://quay.nju.edu.cn"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."ghcr.io"]
|
||||
endpoint = ["https://ghcr.nju.edu.cn"]
|
||||
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."nvcr.io"]
|
||||
endpoint = ["https://ngc.nju.edu.cn"]
|
||||
{% endif %}
|
||||
|
||||
[plugins."io.containerd.grpc.v1.cri".x509_key_pair_streaming]
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"exec-opts": ["native.cgroupdriver={{ CGROUP_DRIVER }}"],
|
||||
{% if ENABLE_MIRROR_REGISTRY %}
|
||||
"registry-mirrors": [
|
||||
"https://docker.mirrors.ustc.edu.cn",
|
||||
"http://hub-mirror.c.163.com"
|
||||
"https://docker.nju.edu.cn/",
|
||||
"https://kuamavit.mirror.aliyuncs.com"
|
||||
],
|
||||
{% endif %}
|
||||
{% if ENABLE_REMOTE_API %}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
#------------------------------------------------------------
|
||||
# !!! Deprecated Warning: this script may be out of date
|
||||
# - Save docker images to disk or load images from disk
|
||||
# - Pull docker images from 'gcr.io|k8s.gcr.io|quay.io'
|
||||
#
|
||||
|
@ -90,7 +91,7 @@ function pull_any_image() {
|
|||
F=$(echo "$1"|awk -F/ '{print NF}')
|
||||
case "$F" in
|
||||
1)
|
||||
HUB="docker.mirrors.ustc.edu.cn"
|
||||
HUB="docker.nju.edu.cn"
|
||||
GRP="library"
|
||||
IMG="$1"
|
||||
;;
|
||||
|
@ -98,11 +99,11 @@ function pull_any_image() {
|
|||
F1=$(echo "$1"|awk -F/ '{print $1}')
|
||||
F2=$(echo "$1"|awk -F/ '{print $2}')
|
||||
if [[ "$F1" == k8s.gcr.io ]];then
|
||||
HUB="gcr.mirrors.ustc.edu.cn"
|
||||
HUB="gcr.nju.edu.cn"
|
||||
GRP="google-containers"
|
||||
IMG="$F2"
|
||||
else
|
||||
HUB="docker.mirrors.ustc.edu.cn"
|
||||
HUB="docker.nju.edu.cn"
|
||||
GRP="$F1"
|
||||
IMG="$F2"
|
||||
fi
|
||||
|
@ -112,9 +113,9 @@ function pull_any_image() {
|
|||
F2=$(echo "$1"|awk -F/ '{print $2}')
|
||||
F3=$(echo "$1"|awk -F/ '{print $3}')
|
||||
if [[ "$F1" == quay.io ]];then
|
||||
HUB="quay.mirrors.ustc.edu.cn"
|
||||
HUB="quay.nju.edu.cn"
|
||||
elif [[ "$F1" == gcr.io ]];then
|
||||
HUB="gcr.mirrors.ustc.edu.cn"
|
||||
HUB="gcr.nju.edu.cn"
|
||||
else
|
||||
logger warn "no mirror image for $1"
|
||||
HUB="$F1"
|
||||
|
|
Loading…
Reference in New Issue