feat: add prometheus manifest

This commit is contained in:
2026-06-14 14:42:02 +02:00
parent 79ce4f928c
commit d18ed0799c
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
- 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