apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
  name: mariadb
  namespace: database
spec:
  interval: 5m
  chart:
    spec:
      chart: mariadb
      version: 11.5.x
      sourceRef:
        kind: HelmRepository
        name: bitnami-charts
        namespace: flux-system

  values:
    auth:
      username: k3scluster
      existingSecret: "mariadb-secret"

    primary:
      persistence:
        existingClaim: mariadb-pv-claim