-
Notifications
You must be signed in to change notification settings - Fork 20
/
pb_install_addon.yaml
45 lines (39 loc) · 1.47 KB
/
pb_install_addon.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
- hosts: all
tasks:
- set_fact:
unsafe_show_logs: "{{ not (kuboardspray_no_log | default(true)) }}"
# 由于始终通过镜像分发,因此我们不检查 ansible_version
# - name: Check ansible version
# import_playbook: 3rd/kubespray/ansible_version.yml
# - name: Ensure compatibility with old groups
# import_playbook: legacy_groups.yml
# - name: Gather facts
# tags: always
# import_playbook: 3rd/kubespray/facts.yml
- name: Gather facts
gather_facts: False
hosts: k8s_cluster
any_errors_fatal: true
roles:
- { role: kuboard-spray-facts, tags: download }
- name: Pre-install
gather_facts: False
hosts: k8s_cluster
roles:
- { role: kubespray-defaults }
- { role: kubernetes/preinstall, tags: preinstall }
- { role: download, tags: download, when: "not skip_downloads" }
- hosts: kube_control_plane
gather_facts: False
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
environment: "{{ proxy_disable_env }}"
roles:
- { role: kubespray-defaults }
- { role: deploy-kuboard, tags: kuboard }
- { role: kubernetes-apps/external_cloud_controller, tags: external-cloud-controller }
- { role: kubernetes-apps/network_plugin, tags: network }
- { role: kubernetes-apps/policy_controller, tags: policy-controller }
- { role: kubernetes-apps/ingress_controller, tags: ingress-controller }
- { role: kubernetes-apps/external_provisioner, tags: external-provisioner }
- { role: kubernetes-apps, tags: apps }