Skip to content

Commit

Permalink
add Cloudability's metrics-agent to stage-p01
Browse files Browse the repository at this point in the history
This commit introduces an ApplicationSet for [Cloudability's
metrics-agent](https://github.com/cloudability/metrics-agent/). The
Agent is installed via [it's Helm
Chart](https://github.com/cloudability/metrics-agent/tree/master?tab=readme-ov-file#deploying-with-helm)
and it will be initially deployed only in cluster stage-p01.
  • Loading branch information
filariow committed Aug 30, 2024
1 parent 29944cd commit 6f88e1d
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
apiVersion: argoproj.io/v1alpha1
kind: ApplicationSet
metadata:
name: cloudability-metrics-agent
spec:
generators:
- merge:
mergeKeys:
- nameNormalized
generators:
- clusters:
values:
sourceRoot: components/cloudability-metrics-agent
environment: staging
clusterDir: ""
- list:
elements:
# restrict to stage-p01 cluster for PoC
- nameNormalized: stone-stage-p01
values.clusterDir: stone-stage-p01
template:
metadata:
name: cloudability-metrics-agent-{{nameNormalized}}
spec:
project: default
sources:
- repoURL: https://github.com/redhat-appstudio/infra-deployments.git
targetRevision: main
ref: values
- chart: metrics-agent
repoURL: https://cloudability.github.io/metrics-agent
targetRevision: 2.11.29
helm:
# (cf. https://argo-cd.readthedocs.io/en/stable/user-guide/helm/#helm-value-precedence)
# Order of precedence is parameters > values > valueFiles
valuesFiles:
- $values/{{values.sourceRoot}}/{{values.environment}}/{{values.clusterDir}}/cloudability-metrics-agent-helm-values.yaml
values: |-
openshift: true
secretName: cloudability-api-key
clusterName: {{values.clusterDir}}
destination:
namespace: cloudability
server: '{{server}}'
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
retry:
limit: 50
backoff:
duration: 10s
factor: 2
maxDuration: 3m
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- cloudability-metrics-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ resources:
- enable-dvo-for-all-cluster
- kubesaw-common
- power-monitoring
- cloudability-metrics-agent
components:
- ../../../k-components/inject-infra-deployments-repo-details
9 changes: 9 additions & 0 deletions components/cloudability-metrics-agent/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# See the OWNERS docs: https://go.k8s.io/owners

approvers:
- manish-jangra
- filariow

reviewers:
- manish-jangra
- filariow
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeSelector: {}
tolerations: []

0 comments on commit 6f88e1d

Please sign in to comment.