# Managed by Ansible (roles/k3s_postgres) — do not edit on the node. # # A HelmChart CR, same pattern as # roles/k3s_metallb/templates/metallb.helmchart.yaml.j2 and # roles/k3s_monitoring — k3s's bundled helm-controller reconciles it, the # same mechanism it uses to install its own bundled Traefik and ServiceLB. # No helm binary, kubeconfig, or extra Ansible collection needed on the # controller. This installs the CloudNativePG operator and its CRDs only — # the actual Postgres cluster is templates/postgres-cluster.yaml.j2, a plain # manifest applied once the CRD it references exists (see that file). apiVersion: helm.cattle.io/v1 kind: HelmChart metadata: name: cloudnative-pg namespace: kube-system spec: chart: cloudnative-pg repo: {{ k3s_postgres_chart_repo }} version: "{{ k3s_postgres_chart_version }}" targetNamespace: {{ k3s_postgres_operator_namespace }} createNamespace: true