From c8a257436ddfcd0a89b0119e8f026c5f7f95167d Mon Sep 17 00:00:00 2001 From: Mans Ziesel Date: Wed, 6 Nov 2024 20:14:04 +0100 Subject: [PATCH] add metrics-server --- .../base/metrics-server-application.yaml | 20 +++++++++++++++++++ argocd-applications/kustomization.yaml | 1 + .../base/metrics-server-namespace.yaml | 4 ++++ metrics-server/kustomization.yaml | 8 ++++++++ 4 files changed, 33 insertions(+) create mode 100644 argocd-applications/base/metrics-server-application.yaml create mode 100644 metrics-server/base/metrics-server-namespace.yaml create mode 100644 metrics-server/kustomization.yaml diff --git a/argocd-applications/base/metrics-server-application.yaml b/argocd-applications/base/metrics-server-application.yaml new file mode 100644 index 0000000..f441ec1 --- /dev/null +++ b/argocd-applications/base/metrics-server-application.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argo-app-metrics-server + namespace: argocd +spec: + destination: + name: '' + namespace: default + server: https://kubernetes.default.svc + source: + path: metrics-server + repoURL: https://git.mziesel.nl/mans/argocd-test + targetRevision: HEAD + sources: [] + project: default + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/argocd-applications/kustomization.yaml b/argocd-applications/kustomization.yaml index 4f3672f..4256987 100644 --- a/argocd-applications/kustomization.yaml +++ b/argocd-applications/kustomization.yaml @@ -18,3 +18,4 @@ resources: - ./base/keycloak-application.yaml - ./base/mediaserver-application.yaml - ./base/uptime-kuma-application.yaml + - ./base/metrics-server-application.yaml diff --git a/metrics-server/base/metrics-server-namespace.yaml b/metrics-server/base/metrics-server-namespace.yaml new file mode 100644 index 0000000..42f4d1f --- /dev/null +++ b/metrics-server/base/metrics-server-namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: metrics-server diff --git a/metrics-server/kustomization.yaml b/metrics-server/kustomization.yaml new file mode 100644 index 0000000..0d82769 --- /dev/null +++ b/metrics-server/kustomization.yaml @@ -0,0 +1,8 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: metrics-server + +resources: + - ./base/metrics-server-namespace.yaml + - https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.7.2/components.yaml