mirror of https://github.com/easzlab/kubeasz.git
增加docker 配置文件
parent
4cd887f458
commit
f2a75c6d39
|
@ -0,0 +1,11 @@
|
|||
# 国内镜像加速
|
||||
|
||||
REG_MIRROR_1: "https://registry.docker-cn.com"
|
||||
REG_MIRROR_2: "https://docker.mirrors.ustc.edu.cn"
|
||||
|
||||
# docker日志相关
|
||||
|
||||
LOG_DRIVER: "json-file"
|
||||
LOG_LEVEL: "warn"
|
||||
LOG_MAX_SIZE: "10m"
|
||||
LOG_MAX_FILE: 3
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"registry-mirrors": ["https://kuamavit.mirror.aliyuncs.com", "https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"],
|
||||
"max-concurrent-downloads": 10,
|
||||
"log-driver": "json-file",
|
||||
"log-level": "warn",
|
||||
"log-opts": {
|
||||
"max-size": "10m",
|
||||
"max-file": "3"
|
||||
}
|
||||
}
|
|
@ -22,7 +22,7 @@
|
|||
copy: src=docker dest=/etc/bash_completion.d/docker mode=0644
|
||||
|
||||
- name: docker国内镜像加速
|
||||
copy: src=daemon.json dest=/etc/docker/daemon.json
|
||||
template: src=daemon.json.j2 dest=/etc/docker/daemon.json
|
||||
|
||||
- name: flush-iptables
|
||||
shell: "iptables -F && iptables -X \
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"registry-mirrors": ["{{ REG_MIRROR_1 }}", "{{ REG_MIRROR_2 }}"],
|
||||
"max-concurrent-downloads": 10,
|
||||
"log-driver": "{{ LOG_DRIVER }}",
|
||||
"log-level": "{{ LOG_LEVEL }}",
|
||||
"log-opts": {
|
||||
"max-size": "{{ LOG_MAX_SIZE }}",
|
||||
"max-file": "{{ LOG_MAX_FILE }}"
|
||||
}
|
||||
}
|
|
@ -11,6 +11,7 @@
|
|||
- cluster-addon
|
||||
- cluster-restore
|
||||
- cluster-storage
|
||||
- docker
|
||||
- flannel
|
||||
- helm
|
||||
- kube-node
|
||||
|
@ -28,6 +29,7 @@
|
|||
- cluster-addon
|
||||
- cluster-restore
|
||||
- cluster-storage
|
||||
- docker
|
||||
- flannel
|
||||
- helm
|
||||
- kube-node
|
||||
|
|
Loading…
Reference in New Issue