You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
919 B

9 years ago
  1. ---
  2. - include: install.yml
  3. - name: Write Calico cni config
  4. template:
  5. src: "cni-calico.conf.j2"
  6. dest: "/etc/cni/net.d/10-calico.conf"
  7. owner: kube
  8. when: kube_network_plugin == "calico"
  9. - name: Write kubelet config file
  10. template: src=kubelet.j2 dest={{ kube_config_dir }}/kubelet.env backup=yes
  11. notify:
  12. - restart kubelet
  13. - name: write the kubecfg (auth) file for kubelet
  14. template: src=node-kubeconfig.yaml.j2 dest={{ kube_config_dir }}/node-kubeconfig.yaml backup=yes
  15. notify:
  16. - restart kubelet
  17. - name: Write proxy manifest
  18. template:
  19. src: manifests/kube-proxy.manifest.j2
  20. dest: "{{ kube_manifest_dir }}/kube-proxy.manifest"
  21. - name: Restart kubelet if binary changed
  22. command: /bin/true
  23. notify: restart kubelet
  24. when: kubelet_launcher.changed
  25. # reload-systemd
  26. - meta: flush_handlers
  27. - name: Enable kubelet
  28. service:
  29. name: kubelet
  30. enabled: yes
  31. state: started