mirror of https://github.com/k3s-io/k3s
Salt: Add service block for kube-proxy for systemd
We have the workaround for Salt's problems here, but we should still express our intent.pull/6/head
parent
60d822435b
commit
a5b3c73ac4
|
@ -53,16 +53,20 @@ kube-proxy:
|
|||
- group: root
|
||||
- mode: 755
|
||||
|
||||
{% endif %}
|
||||
|
||||
kube-proxy-service:
|
||||
service.running:
|
||||
- name: kube-proxy
|
||||
- enable: True
|
||||
- watch:
|
||||
- file: {{ environment_file }}
|
||||
{% if pillar.get('is_systemd') %}
|
||||
- file: {{ pillar.get('systemd_system_path') }}/kube-proxy.service
|
||||
{% else %}
|
||||
- file: /etc/init.d/kube-proxy
|
||||
- file: /var/lib/kube-proxy/kubeconfig
|
||||
|
||||
{% endif %}
|
||||
- file: /var/lib/kube-proxy/kubeconfig
|
||||
|
||||
/var/lib/kube-proxy/kubeconfig:
|
||||
file.managed:
|
||||
|
|
Loading…
Reference in New Issue