2015-10-03 20:19:50 +00:00
|
|
|
---
|
|
|
|
- name: Write kube-apiserver systemd init file
|
2015-11-20 10:18:37 +00:00
|
|
|
template: src=systemd-init/kube-apiserver.service.j2 dest=/etc/systemd/system/kube-apiserver.service backup=yes
|
2015-11-27 11:32:31 +00:00
|
|
|
notify: restart apiserver
|
2015-10-03 20:19:50 +00:00
|
|
|
|
|
|
|
- name: Write kube-controller-manager systemd init file
|
2015-11-20 10:18:37 +00:00
|
|
|
template: src=systemd-init/kube-controller-manager.service.j2 dest=/etc/systemd/system/kube-controller-manager.service backup=yes
|
2015-11-27 11:32:31 +00:00
|
|
|
notify: restart controller-manager
|
2015-10-03 20:19:50 +00:00
|
|
|
|
|
|
|
- name: Write kube-scheduler systemd init file
|
2015-11-20 10:18:37 +00:00
|
|
|
template: src=systemd-init/kube-scheduler.service.j2 dest=/etc/systemd/system/kube-scheduler.service backup=yes
|
2015-11-27 11:32:31 +00:00
|
|
|
notify: restart scheduler
|
2015-10-03 20:19:50 +00:00
|
|
|
|
|
|
|
- name: Write kube-proxy systemd init file
|
2015-11-20 10:18:37 +00:00
|
|
|
template: src=systemd-init/kube-proxy.service.j2 dest=/etc/systemd/system/kube-proxy.service backup=yes
|
2015-11-27 11:32:31 +00:00
|
|
|
notify: restart proxy
|
2015-10-03 20:19:50 +00:00
|
|
|
|
|
|
|
- name: Install kubernetes binaries
|
2015-11-20 10:18:37 +00:00
|
|
|
copy:
|
2015-10-03 20:19:50 +00:00
|
|
|
src={{ local_release_dir }}/kubernetes/bin/{{ item }}
|
|
|
|
dest={{ bin_dir }}
|
|
|
|
owner=kube
|
|
|
|
mode=u+x
|
|
|
|
with_items:
|
|
|
|
- kube-apiserver
|
2015-11-20 10:18:37 +00:00
|
|
|
- kube-controller-manager
|
2015-10-03 20:19:50 +00:00
|
|
|
- kube-scheduler
|
|
|
|
- kube-proxy
|
|
|
|
- kubectl
|
|
|
|
notify:
|
|
|
|
- restart daemons
|
|
|
|
|
|
|
|
- name: Allow apiserver to bind on both secure and insecure ports
|
|
|
|
shell: setcap cap_net_bind_service+ep {{ bin_dir }}/kube-apiserver
|