File tree 3 files changed +5
-13
lines changed
3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,6 @@ NODE_PORT_RANGE="20000-40000"
45
45
# Cluster DNS Domain
46
46
CLUSTER_DNS_DOMAIN="cluster.local."
47
47
48
- # Docker data ROOT
49
- # STORAGE_DIR="/var/lib/docker"
50
-
51
- # Docker insecure registry
52
- # INSECURE_REG='["127.0.0.1/8"]'
53
-
54
48
# -------- Additional Variables (don't change the default value right now)---
55
49
# Binaries Directory
56
50
bin_dir="/opt/kube/bin"
Original file line number Diff line number Diff line change @@ -49,12 +49,6 @@ NODE_PORT_RANGE="20000-40000"
49
49
# Cluster DNS Domain
50
50
CLUSTER_DNS_DOMAIN="cluster.local."
51
51
52
- # Docker data ROOT
53
- # STORAGE_DIR="/var/lib/docker"
54
-
55
- # Docker insecure registry
56
- # INSECURE_REG='["127.0.0.1/8"]'
57
-
58
52
# -------- Additional Variables (don't change the default value right now) ---
59
53
# Binaries Directory
60
54
bin_dir="/opt/kube/bin"
Original file line number Diff line number Diff line change 16
16
tasks :
17
17
- name : 创建文件夹/opt/kube/images
18
18
file : dest=/opt/kube/images state=directory
19
- - name : 推送07.cluster-addon.yml中的镜像包
19
+
20
+ - name : 推送cluster-addon的离线镜像包
20
21
copy : src={{ item }} dest=/opt/kube/images/
21
22
with_fileglob :
22
23
- " {{ base_dir }}/down/coredns*.tar"
23
24
- " {{ base_dir }}/down/dashboard*.tar"
24
25
- " {{ base_dir }}/down/heapster*.tar"
25
26
- " {{ base_dir }}/down/metrics*.tar"
26
27
- " {{ base_dir }}/down/traefik*.tar"
28
+ ignore_errors : true
29
+
27
30
- name : 导入离线镜像(若执行失败,可忽略)
28
31
shell : ls /opt/kube/images/*.tar |while read n;do {{ bin_dir }}/docker load -i $n ;done
29
32
ignore_errors : true
30
33
when : " CONTAINER_RUNTIME == 'docker'"
34
+
31
35
- name : 导入离线镜像(若执行失败,可忽略)
32
36
shell : ls /opt/kube/images/*.tar |while read n;do {{ bin_dir }}/ctr -n=k8s.io images import $n ;done
33
37
ignore_errors : true
You can’t perform that action at this time.
0 commit comments