Skip to content

Commit 6bc2150

Browse files
committed
minor fix
1 parent 8278b1e commit 6bc2150

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

example/hosts.allinone

-6
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ NODE_PORT_RANGE="20000-40000"
4545
# Cluster DNS Domain
4646
CLUSTER_DNS_DOMAIN="cluster.local."
4747

48-
# Docker data ROOT
49-
# STORAGE_DIR="/var/lib/docker"
50-
51-
# Docker insecure registry
52-
# INSECURE_REG='["127.0.0.1/8"]'
53-
5448
# -------- Additional Variables (don't change the default value right now)---
5549
# Binaries Directory
5650
bin_dir="/opt/kube/bin"

example/hosts.multi-node

-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ NODE_PORT_RANGE="20000-40000"
4949
# Cluster DNS Domain
5050
CLUSTER_DNS_DOMAIN="cluster.local."
5151

52-
# Docker data ROOT
53-
# STORAGE_DIR="/var/lib/docker"
54-
55-
# Docker insecure registry
56-
# INSECURE_REG='["127.0.0.1/8"]'
57-
5852
# -------- Additional Variables (don't change the default value right now) ---
5953
# Binaries Directory
6054
bin_dir="/opt/kube/bin"

tools/02.addnode.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,22 @@
1616
tasks:
1717
- name: 创建文件夹/opt/kube/images
1818
file: dest=/opt/kube/images state=directory
19-
- name: 推送07.cluster-addon.yml中的镜像包
19+
20+
- name: 推送cluster-addon的离线镜像包
2021
copy: src={{ item }} dest=/opt/kube/images/
2122
with_fileglob:
2223
- "{{ base_dir }}/down/coredns*.tar"
2324
- "{{ base_dir }}/down/dashboard*.tar"
2425
- "{{ base_dir }}/down/heapster*.tar"
2526
- "{{ base_dir }}/down/metrics*.tar"
2627
- "{{ base_dir }}/down/traefik*.tar"
28+
ignore_errors: true
29+
2730
- name: 导入离线镜像(若执行失败,可忽略)
2831
shell: ls /opt/kube/images/*.tar |while read n;do {{ bin_dir }}/docker load -i $n ;done
2932
ignore_errors: true
3033
when: "CONTAINER_RUNTIME == 'docker'"
34+
3135
- name: 导入离线镜像(若执行失败,可忽略)
3236
shell: ls /opt/kube/images/*.tar |while read n;do {{ bin_dir }}/ctr -n=k8s.io images import $n ;done
3337
ignore_errors: true

0 commit comments

Comments
 (0)