File tree 4 files changed +24
-4
lines changed
roles/kubernetes/preinstall/tasks
4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,9 @@ packet_ubuntu20-crio:
80
80
packet_ubuntu22-calico-all-in-one :
81
81
extends : .packet_pr
82
82
83
+ packet_debian12-kubelet_root :
84
+ extends : .packet_pr
85
+
83
86
packet_ubuntu22-calico-all-in-one-upgrade :
84
87
extends : .packet_pr
85
88
variables :
Original file line number Diff line number Diff line change
1
+ ---
1
2
# mount bind the kubelet root to the default location.
2
3
# many csi and software in the ecosystem have this location hardcoded
3
4
16
17
mode : ' 0750'
17
18
when :
18
19
- kubelet_root_dir != '/var/lib/kubelet'
19
-
20
+
20
21
- name : " Synchronize old /var/lib/kubelet to new location before mounting"
21
- command : " rsync -avh --ignore-existing /var/lib/kubelet/ {{kubelet_root_dir}}"
22
- changed_when : false
22
+ command : " rsync -avh --ignore-existing "
23
+ ansible.posix.synchronize :
24
+ src : /var/lib/kubelet/
25
+ dest : " {{kubelet_root_dir}}"
26
+ archive : true
27
+ rsync_opts :
28
+ - " --ignore-existing"
29
+ set_remote_user : false
30
+ delegate_to : " {{inventory_hostname}}"
23
31
when :
24
32
- kubelet_root_dir != '/var/lib/kubelet'
25
33
Original file line number Diff line number Diff line change 139
139
- not ignore_assert_errors
140
140
141
141
142
- - import_tasks : 0200_kubeletroot.yaml
142
+ - name : Configure alternative kubelet root
143
+ import_tasks : 0200-kubeletroot.yml
143
144
tags :
144
145
- bootstrap-os
145
146
- kubelet-root
Original file line number Diff line number Diff line change
1
+ ---
2
+ # Instance settings
3
+ cloud_image : debian-12
4
+ mode : default
5
+
6
+ # Kubespray settings
7
+
8
+ kubelet_root_dir : /data/kubelet
You can’t perform that action at this time.
0 commit comments