废弃heapster自动安装脚本

dev1
gjmzj 2019-06-16 22:13:57 +08:00
parent 11172c0f5b
commit 0d8c47d95c
1 changed files with 0 additions and 25 deletions

View File

@ -124,31 +124,6 @@
- import_tasks: ingress.yml - import_tasks: ingress.yml
when: '"ingress-controller" not in pod_info.stdout and ingress_install == "yes"' when: '"ingress-controller" not in pod_info.stdout and ingress_install == "yes"'
- block:
- block:
- name: 尝试推送离线 heapster镜像若执行失败可忽略
copy: src={{ base_dir }}/down/{{ heapster_offline }} dest=/opt/kube/images/{{ heapster_offline }}
when: 'heapster_offline in download_info.stdout'
- name: 获取heapster离线镜像推送情况
command: "ls /opt/kube/images"
register: image_info
- name: 导入 heapster的离线镜像若执行失败可忽略
shell: "{{ bin_dir }}/docker load -i /opt/kube/images/{{ heapster_offline }}"
when: 'heapster_offline in image_info.stdout and CONTAINER_RUNTIME == "docker"'
- name: 导入 heapster的离线镜像若执行失败可忽略
shell: "{{ bin_dir }}/ctr -n=k8s.io images import /opt/kube/images/{{ heapster_offline }}"
when: 'heapster_offline in image_info.stdout and CONTAINER_RUNTIME == "containerd"'
- name: 创建 heapster部署
shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/heapster/heapster.yaml"
delegate_to: "{{ groups.deploy[0] }}"
run_once: true
when: '"heapster" not in pod_info.stdout and heapster_install == "yes"'
ignore_errors: true
- block: - block:
- block: - block:
- name: 尝试推送离线 metallb镜像若执行失败可忽略 - name: 尝试推送离线 metallb镜像若执行失败可忽略