mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Salt: force service provider to systemd if systemd
The version of Salt we're running doesn't do a good job of detecting systemd. Inspired by https://github.com/saltstack/salt/issues/13926, I added a provider-force to the services. With this change, salt-call -l debug state.highstate succeeds, even for repeated invocations. The issue was (probably) benign, but definitely caused noised (e.g. #11297)
This commit is contained in:
parent
a5d2c1b0fb
commit
cdd4caf4df
@ -212,3 +212,7 @@ kube-addons:
|
||||
{% else %}
|
||||
- file: /etc/init.d/kube-addons
|
||||
{% endif %}
|
||||
{% if pillar.get('is_systemd') %}
|
||||
- provider:
|
||||
- service: systemd
|
||||
{%- endif %}
|
||||
|
@ -79,3 +79,7 @@ kubelet:
|
||||
{% endif %}
|
||||
- file: {{ environment_file }}
|
||||
- file: /var/lib/kubelet/kubeconfig
|
||||
{% if pillar.get('is_systemd') %}
|
||||
- provider:
|
||||
- service: systemd
|
||||
{%- endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user