homelab/build/config/ansible/roles/k3s_monitoring/tasks/main.yml
Russell Seymour 1250c9cef6
Some checks are pending
deploy / deploy (push) Waiting to run
Initial checkin of code for managing homelab
2026-08-24 20:52:36 +01:00

16 lines
704 B
YAML

---
# Drops a HelmChart CR into k3s's auto-deploying manifests directory on the
# control-plane node; k3s's bundled helm-controller reconciles it, the same
# mechanism it uses to install its own bundled Traefik and ServiceLB. See
# templates/kube-prometheus-stack.helmchart.yaml.j2 for why this needs no
# helm binary or extra Ansible collection, and README.md "Metrics
# (Prometheus)" for how to point OpenLens at the result.
- name: Deploy the kube-prometheus-stack HelmChart manifest
ansible.builtin.template:
src: kube-prometheus-stack.helmchart.yaml.j2
dest: /var/lib/rancher/k3s/server/manifests/kube-prometheus-stack.yaml
owner: root
group: root
mode: "0644"
become: true