hongbo-miao/hongbomiao.com

View on GitHub
kubernetes/argo-cd/applications/production-hm/opencost/argo-cd-manifests/hm-opencost-application.yaml

Summary

Maintainability
Test Coverage
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: hm-opencost
  namespace: production-hm-argo-cd
  labels:
    app.kubernetes.io/name: hm-opencost
spec:
  project: production-hm
  sources:
    - repoURL: https://opencost.github.io/opencost-helm-chart
      # https://artifacthub.io/packages/helm/opencost/opencost
      targetRevision: 1.39.0
      chart: opencost
      helm:
        releaseName: hm-opencost
        values: |
          # https://github.com/opencost/opencost-helm-chart/blob/main/charts/opencost/values.yaml
          ---
          opencost:
            prometheus:
              internal:
                enabled: true
                serviceName: hm-prometheus-kube-pr-prometheus
                namespaceName: production-hm-prometheus
                port: 9090
            exporter:
              resources:
                requests:
                  cpu: 50m
                  memory: 128Mi
                limits:
                  cpu: 100m
                  memory: 256Mi
            ui:
              enabled: true
              resources:
                requests:
                  cpu: 50m
                  memory: 128Mi
                limits:
                  cpu: 100m
                  memory: 256Mi
    - repoURL: git@github.com:hongbo-miao/hongbomiao.com.git
      targetRevision: HEAD
      path: kubernetes/argo-cd/applications/production-hm/opencost/kubernetes-manifests
  destination:
    namespace: production-hm-opencost
    server: https://kubernetes.default.svc
  syncPolicy:
    syncOptions:
      - ServerSideApply=true
    automated:
      prune: true