@@ -87,7 +87,6 @@ write_files:
87
87
curl -sfL https://get.rke2.io | sh -
88
88
fi
89
89
%{ if is_server ~}
90
- %{ ~ if is_first ~}
91
90
%{ ~ for k, v in manifests_files ~}
92
91
- path: /opt/rke2/manifests/${ k}
93
92
permissions: "0600"
@@ -129,7 +128,6 @@ write_files:
129
128
/usr/local/bin/customize-chart.sh "$CHARTS_DIR/$patch_name" "$patch"
130
129
fi
131
130
done
132
- %{ ~ endif ~}
133
131
- path: /etc/modules-load.d/ipvs.conf
134
132
permissions: "0644"
135
133
owner: root:root
@@ -175,11 +173,11 @@ write_files:
175
173
- name: vip_leasename
176
174
value: plndr-cp-lock
177
175
- name: vip_leaseduration
178
- value: "15 "
176
+ value: "5 "
179
177
- name: vip_renewdeadline
180
- value: "10 "
178
+ value: "3 "
181
179
- name: vip_retryperiod
182
- value: "2 "
180
+ value: "1 "
183
181
- name: enable_node_labeling
184
182
value: "true"
185
183
- name: lb_enable
@@ -292,17 +290,13 @@ runcmd:
292
290
- until [ -d /var/lib/rancher/rke2/agent/pod-manifests/ ]; do echo "Waiting for $(hostname) static pods"; sleep 1; done
293
291
- mv -v /opt/rke2/kube-vip.yaml /var/lib/rancher/rke2/agent/pod-manifests/kube-vip.yaml
294
292
- ls /var/lib/rancher/rke2/agent/pod-manifests
295
- %{ ~ if is_first ~}
296
293
- wget https://github.com/mikefarah/yq/releases/download/v4.40.5/yq_linux_amd64.tar.gz -O - | tar xz && mv yq_linux_amd64 /usr/bin/yq
297
294
- until [ -d /var/lib/rancher/rke2/data/v*/charts ]; do echo "Waiting for $(hostname) charts data"; sleep 1; done
298
295
- /usr/local/bin/customize-charts.sh $(realpath /var/lib/rancher/rke2/data/v*/charts)
299
296
- until [ -d /var/lib/rancher/rke2/server/manifests ]; do echo "Waiting for $(hostname) manifests"; sleep 1; done
300
297
- /usr/local/bin/customize-charts.sh /var/lib/rancher/rke2/server/manifests
301
298
- mv -v /opt/rke2/manifests/*.yaml /var/lib/rancher/rke2/server/manifests
302
299
- ls /var/lib/rancher/rke2/server/manifests
303
- %{ ~ else ~}
304
- - for i in $(find /var/lib/rancher/rke2/server/manifests -type f); do cp -v $i $i.skip; done
305
- %{ ~ endif ~}
306
300
- until systemctl is-active -q rke2-server.service; do echo "Waiting for $(hostname) rke2 to start"; sleep 3; journalctl -u rke2-server.service --since "3 second ago"; done
307
301
%{ ~ else ~}
308
302
- systemctl enable rke2-agent.service
0 commit comments