commit
0538f8a70d
7 changed files with 36 additions and 19 deletions
|
@ -1,21 +1,25 @@
|
||||||
---
|
---
|
||||||
- name: install | Copy etcd binary from download dir
|
- name: install | Copy etcd and etcdctl binary from download dir
|
||||||
shell: |
|
synchronize:
|
||||||
rsync -piu "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/etcd" "{{ bin_dir }}/etcd"
|
src: "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/{{ item }}"
|
||||||
rsync -piu "{{ local_release_dir }}/etcd-{{ etcd_version }}-linux-amd64/etcdctl" "{{ bin_dir }}/etcdctl"
|
dest: "{{ bin_dir }}/{{ item }}"
|
||||||
|
compress: no
|
||||||
|
perms: yes
|
||||||
|
owner: no
|
||||||
|
group: no
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
with_items:
|
||||||
|
- "etcd"
|
||||||
|
- "etcdctl"
|
||||||
when: etcd_cluster_setup
|
when: etcd_cluster_setup
|
||||||
|
|
||||||
- name: install | Set etcd binary permissions
|
- name: install | Set etcd and etcdctl binary permissions
|
||||||
file:
|
file:
|
||||||
path: "{{ bin_dir }}/etcd"
|
path: "{{ bin_dir }}/{{ item }}"
|
||||||
mode: "0755"
|
|
||||||
state: file
|
|
||||||
when: etcd_cluster_setup
|
|
||||||
|
|
||||||
- name: install | Set etcdctl binary permissions
|
|
||||||
file:
|
|
||||||
path: "{{ bin_dir }}/etcdctl"
|
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
state: file
|
state: file
|
||||||
|
with_items:
|
||||||
|
- "etcd"
|
||||||
|
- "etcdctl"
|
||||||
when: etcd_cluster_setup
|
when: etcd_cluster_setup
|
|
@ -10,8 +10,15 @@
|
||||||
when: kube_encrypt_secret_data
|
when: kube_encrypt_secret_data
|
||||||
|
|
||||||
- name: install | Copy kubectl binary from download dir
|
- name: install | Copy kubectl binary from download dir
|
||||||
command: rsync -piu "{{ local_release_dir }}/hyperkube" "{{ bin_dir }}/kubectl"
|
synchronize:
|
||||||
|
src: "{{ local_release_dir }}/hyperkube"
|
||||||
|
dest: "{{ bin_dir }}/kubectl"
|
||||||
|
compress: no
|
||||||
|
perms: yes
|
||||||
|
owner: no
|
||||||
|
group: no
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
tags:
|
tags:
|
||||||
- hyperkube
|
- hyperkube
|
||||||
- kubectl
|
- kubectl
|
||||||
|
|
0
roles/kubernetes/node/tasks/install
Normal file
0
roles/kubernetes/node/tasks/install
Normal file
|
@ -11,6 +11,7 @@
|
||||||
src: "{{ local_release_dir }}/kubeadm"
|
src: "{{ local_release_dir }}/kubeadm"
|
||||||
dest: "{{ bin_dir }}/kubeadm"
|
dest: "{{ bin_dir }}/kubeadm"
|
||||||
compress: no
|
compress: no
|
||||||
|
perms: yes
|
||||||
owner: no
|
owner: no
|
||||||
group: no
|
group: no
|
||||||
delegate_to: "{{ inventory_hostname }}"
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
|
|
0
roles/kubernetes/node/tasks/install_
Normal file
0
roles/kubernetes/node/tasks/install_
Normal file
|
@ -1,11 +1,18 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: install | Copy kubelet binary from download dir
|
- name: install | Copy kubelet binary from download dir
|
||||||
command: rsync -piu "{{ local_release_dir }}/hyperkube" "{{ bin_dir }}/kubelet"
|
synchronize:
|
||||||
changed_when: false
|
src: "{{ local_release_dir }}/hyperkube"
|
||||||
|
dest: "{{ bin_dir }}/kubelet"
|
||||||
|
compress: no
|
||||||
|
perms: yes
|
||||||
|
owner: no
|
||||||
|
group: no
|
||||||
|
delegate_to: "{{ inventory_hostname }}"
|
||||||
tags:
|
tags:
|
||||||
- hyperkube
|
- hyperkube
|
||||||
- upgrade
|
- upgrade
|
||||||
|
notify: restart kubelet
|
||||||
|
|
||||||
- name: install | Set kubelet binary permissions
|
- name: install | Set kubelet binary permissions
|
||||||
file:
|
file:
|
||||||
|
@ -15,7 +22,6 @@
|
||||||
tags:
|
tags:
|
||||||
- hyperkube
|
- hyperkube
|
||||||
- upgrade
|
- upgrade
|
||||||
notify: restart kubelet
|
|
||||||
|
|
||||||
- name: install | Copy socat wrapper for Container Linux
|
- name: install | Copy socat wrapper for Container Linux
|
||||||
command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
|
command: "{{ docker_bin_dir }}/docker run --rm -v {{ bin_dir }}:/opt/bin {{ install_socat_image_repo }}:{{ install_socat_image_tag }}"
|
||||||
|
|
|
@ -100,9 +100,8 @@
|
||||||
- { role: kubespray-defaults}
|
- { role: kubespray-defaults}
|
||||||
- { role: upgrade/pre-upgrade, tags: pre-upgrade }
|
- { role: upgrade/pre-upgrade, tags: pre-upgrade }
|
||||||
- { role: kubernetes/node, tags: node }
|
- { role: kubernetes/node, tags: node }
|
||||||
- { role: upgrade/post-upgrade, tags: post-upgrade }
|
|
||||||
- { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" }
|
- { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" }
|
||||||
- { role: kubespray-defaults}
|
- { role: upgrade/post-upgrade, tags: post-upgrade }
|
||||||
environment: "{{proxy_env}}"
|
environment: "{{proxy_env}}"
|
||||||
|
|
||||||
- hosts: kube-master[0]
|
- hosts: kube-master[0]
|
||||||
|
|
Loading…
Reference in a new issue