Support systemd unit management during node join
- Support systemctl enable/start/stop/disable commands during join.sh or genesis.sh Change-Id: I28046afbc55fc1d1af4575778f614f928f0e91c9
This commit is contained in:
@@ -105,6 +105,13 @@ log
|
||||
log === Starting Docker and Kubelet ===
|
||||
set -x
|
||||
systemctl daemon-reload
|
||||
|
||||
{% for a in ['enable','start','stop','disable'] %}
|
||||
{% for u in config.get_units_by_action(a) %}
|
||||
systemctl {{ a }} {{ u }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
systemctl restart docker || true
|
||||
systemctl enable kubelet
|
||||
systemctl restart kubelet
|
||||
|
||||
Reference in New Issue
Block a user