commit
e165bb19a0
|
@ -5,19 +5,18 @@
|
||||||
- hosts: etcd:!k8s-cluster
|
- hosts: etcd:!k8s-cluster
|
||||||
roles:
|
roles:
|
||||||
- { role: kubernetes/preinstall, tags: preinstall }
|
- { role: kubernetes/preinstall, tags: preinstall }
|
||||||
- { role: docker, tags: docker }
|
|
||||||
- { role: etcd, tags: etcd }
|
- { role: etcd, tags: etcd }
|
||||||
|
|
||||||
- hosts: k8s-cluster
|
- hosts: k8s-cluster
|
||||||
roles:
|
roles:
|
||||||
- { role: kubernetes/preinstall, tags: preinstall }
|
- { role: kubernetes/preinstall, tags: preinstall }
|
||||||
- { role: docker, tags: docker }
|
|
||||||
- { role: etcd, tags: etcd }
|
- { role: etcd, tags: etcd }
|
||||||
- { role: kubernetes/node, tags: node }
|
- { role: kubernetes/node, tags: node }
|
||||||
- { role: network_plugin, tags: network }
|
- { role: network_plugin, tags: network }
|
||||||
|
|
||||||
- hosts: kube-master
|
- hosts: kube-master
|
||||||
roles:
|
roles:
|
||||||
|
- { role: kubernetes/preinstall, tags: preinstall }
|
||||||
- { role: kubernetes/master, tags: master }
|
- { role: kubernetes/master, tags: master }
|
||||||
|
|
||||||
- hosts: k8s-cluster
|
- hosts: k8s-cluster
|
||||||
|
|
|
@ -7,5 +7,4 @@ dependencies:
|
||||||
file: "{{ downloads.etcd }}"
|
file: "{{ downloads.etcd }}"
|
||||||
when: etcd_deployment_type == "host"
|
when: etcd_deployment_type == "host"
|
||||||
- role: docker
|
- role: docker
|
||||||
when: (ansible_os_family != "CoreOS" and etcd_deployment_type == "docker")
|
when: (ansible_os_family != "CoreOS" and etcd_deployment_type == "docker" or inventory_hostname in groups['k8s-cluster'])
|
||||||
- role: "kubernetes/preinstall"
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
# This is where all the cert scripts and certs will be located
|
||||||
|
kube_cert_dir: "{{ kube_config_dir }}/ssl"
|
||||||
|
|
||||||
|
# This is where all of the bearer tokens will be stored
|
||||||
|
kube_token_dir: "{{ kube_config_dir }}/tokens"
|
||||||
|
|
||||||
|
# This is where to save basic auth file
|
||||||
|
kube_users_dir: "{{ kube_config_dir }}/users"
|
||||||
|
|
||||||
|
# An experimental dev/test only dynamic volumes provisioner,
|
||||||
|
# for PetSets. Works for kube>=v1.3 only.
|
||||||
|
kube_hostpath_dynamic_provisioner: "false"
|
||||||
|
|
||||||
|
hyperkube_image_repo: "quay.io/coreos/hyperkube"
|
||||||
|
hyperkube_image_tag: "{{ kube_version }}_coreos.0"
|
|
@ -2,8 +2,8 @@
|
||||||
- name: Master | restart kubelet
|
- name: Master | restart kubelet
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
notify:
|
notify:
|
||||||
- Kubelet | reload systemd
|
- Master | reload systemd
|
||||||
- Kubelet | reload kubelet
|
- Master | reload kubelet
|
||||||
|
|
||||||
- name: wait for master static pods
|
- name: wait for master static pods
|
||||||
command: /bin/true
|
command: /bin/true
|
||||||
|
|
|
@ -2,5 +2,3 @@
|
||||||
dependencies:
|
dependencies:
|
||||||
- role: download # For kube_version variable
|
- role: download # For kube_version variable
|
||||||
file: "{{ downloads.nothing }}"
|
file: "{{ downloads.nothing }}"
|
||||||
- { role: etcd }
|
|
||||||
- { role: kubernetes/node }
|
|
||||||
|
|
|
@ -1,12 +1,6 @@
|
||||||
# This is where all the cert scripts and certs will be located
|
# This is where all the cert scripts and certs will be located
|
||||||
kube_cert_dir: "{{ kube_config_dir }}/ssl"
|
kube_cert_dir: "{{ kube_config_dir }}/ssl"
|
||||||
|
|
||||||
# This is where all of the bearer tokens will be stored
|
|
||||||
kube_token_dir: "{{ kube_config_dir }}/tokens"
|
|
||||||
|
|
||||||
# This is where to save basic auth file
|
|
||||||
kube_users_dir: "{{ kube_config_dir }}/users"
|
|
||||||
|
|
||||||
dns_domain: "{{ cluster_name }}"
|
dns_domain: "{{ cluster_name }}"
|
||||||
|
|
||||||
# resolv.conf to base dns config
|
# resolv.conf to base dns config
|
||||||
|
@ -14,10 +8,6 @@ kube_resolv_conf: "/etc/resolv.conf"
|
||||||
|
|
||||||
kube_proxy_mode: iptables
|
kube_proxy_mode: iptables
|
||||||
|
|
||||||
# An experimental dev/test only dynamic volumes provisioner,
|
|
||||||
# for PetSets. Works for kube>=v1.3 only.
|
|
||||||
kube_hostpath_dynamic_provisioner: "false"
|
|
||||||
|
|
||||||
hyperkube_image_repo: "quay.io/coreos/hyperkube"
|
hyperkube_image_repo: "quay.io/coreos/hyperkube"
|
||||||
hyperkube_image_tag: "{{ kube_version }}_coreos.0"
|
hyperkube_image_tag: "{{ kube_version }}_coreos.0"
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
# This is where all the cert scripts and certs will be located
|
||||||
|
kube_cert_dir: "{{ kube_config_dir }}/ssl"
|
||||||
|
|
||||||
|
# This is where all of the bearer tokens will be stored
|
||||||
|
kube_token_dir: "{{ kube_config_dir }}/tokens"
|
||||||
|
|
||||||
|
# This is where to save basic auth file
|
||||||
|
kube_users_dir: "{{ kube_config_dir }}/users"
|
|
@ -6,4 +6,3 @@ dependencies:
|
||||||
when: kube_network_plugin == 'flannel'
|
when: kube_network_plugin == 'flannel'
|
||||||
- role: network_plugin/weave
|
- role: network_plugin/weave
|
||||||
when: kube_network_plugin == 'weave'
|
when: kube_network_plugin == 'weave'
|
||||||
- role: docker
|
|
||||||
|
|
Loading…
Reference in New Issue