diff --git a/infra/base/opencost.yaml b/infra/base/opencost.yaml new file mode 100644 index 0000000..6984f3b --- /dev/null +++ b/infra/base/opencost.yaml @@ -0,0 +1,42 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: opencost + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "1" + labels: + app.kubernetes.io/name: opencost + app.kubernetes.io/part-of: monitoring + app.kubernetes.io/managed-by: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + + sources: + - repoURL: https://opencost.github.io/opencost-helm-chart + chart: opencost + targetRevision: "1.42.0" + helm: + releaseName: opencost + valueFiles: + - $values/infra/values/base/opencost-values.yaml + + - repoURL: git@github.com:fortedigital/sturdy-adventure.git + targetRevision: HEAD + ref: values + + destination: + server: https://kubernetes.default.svc + namespace: monitoring + + syncPolicy: + automated: + prune: true + selfHeal: true + allowEmpty: false + syncOptions: + - CreateNamespace=true + - Validate=true + - ServerSideApply=true