homelab/build/config/ansible/roles/k3s_postgres/templates/cnpg-operator.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

21 lines
913 B
Django/Jinja

# 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