apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: nats
  namespace: argocd
spec:
  project: default
  source:
    repoURL: 'https://github.com/zero-down-time/kubezero'
    path: charts/kubezero-mq
    targetRevision: master
    helm:
      values: |
        nats:
          enabled: true
          nats:
            jetstream:
              memStorage:
                enabled: true
                size: 128Mi
              fileStorage:
                enabled: true
                storageClassName: ebs-sc-gp3-xfs
          exporter:
            serviceMonitor:
              enabled: true

  destination:
    server: 'https://kubernetes.default.svc'
    namespace: nats
  syncPolicy:
    automated:
      prune: true
    syncOptions:
    - CreateNamespace=true
