homelab/build/config/ansible/roles/k3s_monitoring/templates/kube-prometheus-stack.helmchart.yaml.j2
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

24 lines
1 KiB
Django/Jinja

---
# Managed by Ansible (roles/k3s_monitoring) — do not edit on the node.
#
# A HelmChart CR, not a `helm install`: k3s ships its own helm-controller
# that watches /var/lib/rancher/k3s/server/manifests/ (this file's
# destination) the same way it watches for any other auto-deploying
# manifest, and reconciles HelmChart resources found there — the same
# mechanism k3s uses to install its own bundled Traefik and ServiceLB. That
# means no helm binary, kubeconfig, or extra Ansible collection is needed on
# the controller; re-running the playbook just re-templates this file and
# the controller reconciles the diff.
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: kube-prometheus-stack
namespace: kube-system
spec:
chart: kube-prometheus-stack
repo: {{ k3s_monitoring_chart_repo }}
version: "{{ k3s_monitoring_chart_version }}"
targetNamespace: {{ k3s_monitoring_namespace }}
createNamespace: true
valuesContent: |
{{ k3s_monitoring_values | to_nice_yaml(indent=2) | indent(4, first=true) }}