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.

32 lines
845 B

  1. ---
  2. - name: Trust kubelet container
  3. command: >-
  4. /usr/bin/rkt trust
  5. --skip-fingerprint-review
  6. --root
  7. {{ item }}
  8. register: kubelet_rkt_trust_result
  9. until: kubelet_rkt_trust_result.rc == 0
  10. with_items:
  11. - "https://quay.io/aci-signing-key"
  12. - "https://coreos.com/dist/pubkeys/aci-pubkeys.gpg"
  13. retries: 4
  14. delay: "{{ retry_stagger | random + 3 }}"
  15. changed_when: false
  16. - name: create kubelet working directory
  17. file:
  18. state: directory
  19. path: /var/lib/kubelet
  20. - name: Create kubelet service systemd directory
  21. file:
  22. path: /etc/systemd/system/kubelet.service.d
  23. state: directory
  24. - name: Write kubelet proxy drop-in
  25. template:
  26. src: http-proxy.conf.j2
  27. dest: /etc/systemd/system/kubelet.service.d/http-proxy.conf
  28. when: http_proxy is defined or https_proxy is defined
  29. notify: restart kubelet