blob: d7f47ff4ac38af9f3c7c57cb1a79d0d0fb6a92d8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
---
- name: create systemd override directory for kubelet
file:
path: /etc/systemd/system/kubelet.service.d
state: directory
- name: install systemd override for kubelet
template:
src: kubelet.service.override.j2
dest: /etc/systemd/system/kubelet.service.d/standalone.conf
notify: restart kubelet
- name: install kubelet config
template:
src: kubelet-config.yml.j2
dest: /etc/kubernetes/kubelet.yml
notify: restart kubelet
- name: make sure kubelet is enabled and running
systemd:
name: kubelet.service
state: started
enabled: yes
daemon_reload: yes
- name: create cni config directory
file:
name: /etc/cni/net.d
state: directory
- name: install cni config
template:
src: "cni-{{ kubernetes_standalone_cni_variant }}.conflist.j2"
dest: /etc/cni/net.d/kube-standalone.conflist
- name: install local-services iptables script
template:
src: kube-standalone-local-services.sh.j2
dest: /usr/local/sbin/kube-standalone-local-services.sh
mode: 0755
notify: restart local-services
- name: install local-services systemd unit
template:
src: kube-standalone-local-services.service.j2
dest: /etc/systemd/system/kube-standalone-local-services.service
notify: restart local-services
- name: make sure local-services is enabled and started
systemd:
daemon_reload: yes
name: kube-standalone-local-services.service
state: started
enabled: yes
|