Skip to content
Snippets Groups Projects
Select Git revision
  • f17f83d6bddd839efa2691ddf88d418e0921d4f0
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
22 results

README-cert.md

Blame
  • cluster.yml 3.85 KiB
    ---
    - hosts: localhost
      gather_facts: false
      become: no
      tasks:
        - name: "Check ansible version >=2.7.8"
          assert:
            msg: "Ansible must be v2.7.8 or higher"
            that:
              - ansible_version.string is version("2.7.8", ">=")
          tags:
            - check
      vars:
        ansible_connection: local
    
    - hosts: bastion[0]
      gather_facts: False
      roles:
        - { role: kubespray-defaults}
        - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
    
    - hosts: k8s-cluster:etcd
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      gather_facts: false
      roles:
        - { role: kubespray-defaults}
        - { role: bootstrap-os, tags: bootstrap-os}
    
    - hosts: k8s-cluster:etcd
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      roles:
        - { role: kubespray-defaults}
        - { role: kubernetes/preinstall, tags: preinstall }
        - { role: "container-engine", tags: "container-engine", when: deploy_container_engine|default(true) }
        - { role: download, tags: download, when: "not skip_downloads" }
      environment: "{{ proxy_env }}"
    
    - hosts: etcd
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      roles:
        - { role: kubespray-defaults}
        - role: etcd
          tags: etcd
          vars:
            etcd_cluster_setup: true
            etcd_events_cluster_setup: "{{ etcd_events_cluster_enabled }}"
          when: not etcd_kubeadm_enabled| default(false)
    
    - hosts: k8s-cluster
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      roles:
        - { role: kubespray-defaults}
        - role: etcd
          tags: etcd
          vars:
            etcd_cluster_setup: false
            etcd_events_cluster_setup: false
          when: not etcd_kubeadm_enabled| default(false)
    
    - hosts: k8s-cluster
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      roles:
        - { role: kubespray-defaults}
        - { role: kubernetes/node, tags: node }
      environment: "{{ proxy_env }}"
    
    - hosts: kube-master
      any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
      roles:
        - { role: kubespray-defaults}