c12s-kubespray/roles/kubernetes/node/tasks/install.yml

32 lines
1,004 B
YAML
Raw Normal View History

2015-10-03 20:19:50 +00:00
---
2016-12-20 23:00:46 +00:00
- name: Trust kubelet container
command: >-
/usr/bin/rkt trust
--skip-fingerprint-review
--root
{{ item }}
register: kubelet_rkt_trust_result
until: kubelet_rkt_trust_result.rc == 0
with_items:
- "https://quay.io/aci-signing-key"
- "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
retries: 4
delay: "{{ retry_stagger | random + 3 }}"
changed_when: false
when: kubelet_deployment_type == "rkt"
- name: create kubelet working directory
file:
state: directory
path: /var/lib/kubelet
when: kubelet_deployment_type == "rkt"
2015-12-22 10:50:55 +00:00
- name: install | Write kubelet systemd init file
2016-12-20 23:00:46 +00:00
template: "src=kubelet.{{ kubelet_deployment_type }}.service.j2 dest=/etc/systemd/system/kubelet.service backup=yes"
2016-01-04 13:22:18 +00:00
notify: restart kubelet
2015-10-03 20:19:50 +00:00
- name: install | Install kubelet launch script
template: src=kubelet-container.j2 dest="{{ bin_dir }}/kubelet" owner={{ kubelet_user }} mode=0755 backup=yes
notify: restart kubelet
2016-12-20 23:00:46 +00:00
when: kubelet_deployment_type == "docker"