14 lines
503 B
YAML
14 lines
503 B
YAML
- name: Download and execute K3s installation script with monitoring metrics enabled
|
|
shell: |
|
|
curl -sfL https://get.k3s.io | sh -
|
|
environment:
|
|
INSTALL_K3S_EXEC: "--server --write-kubeconfig-mode 644 --kube-controller-manager-arg bind-address=0.0.0.0 --kube-proxy-arg metrics-bind-address=0.0.0.0 --kube-scheduler-arg bind-address=0.0.0.0"
|
|
args:
|
|
creates: /usr/local/bin/k3s
|
|
|
|
- name: Ensure K3s service is started and enabled
|
|
systemd:
|
|
name: k3s
|
|
state: started
|
|
enabled: yes
|