From 8844fec46826aae471b06a6ec989fdbf752c2d1c Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Sat, 29 Jan 2022 15:19:47 +0100
Subject: [PATCH] feat(kube-system): Install metrics-server

---
 infrastructure/kube-system/kustomization.yaml |  1 +
 .../kube-system/metrics-server.yaml           | 39 +++++++++++++++++++
 2 files changed, 40 insertions(+)
 create mode 100644 infrastructure/kube-system/metrics-server.yaml

diff --git a/infrastructure/kube-system/kustomization.yaml b/infrastructure/kube-system/kustomization.yaml
index 95b18c2b0..5c2af8529 100644
--- a/infrastructure/kube-system/kustomization.yaml
+++ b/infrastructure/kube-system/kustomization.yaml
@@ -5,3 +5,4 @@ resources:
   - poddisruptionbudget.yaml
   - quorum.yaml
   - descheduler.yaml
+  - metrics-server.yaml
diff --git a/infrastructure/kube-system/metrics-server.yaml b/infrastructure/kube-system/metrics-server.yaml
new file mode 100644
index 000000000..21be98d37
--- /dev/null
+++ b/infrastructure/kube-system/metrics-server.yaml
@@ -0,0 +1,39 @@
+---
+apiVersion: source.toolkit.fluxcd.io/v1beta1
+kind: HelmRepository
+metadata:
+  name: metrics-server
+  namespace: kube-system
+spec:
+  interval: 30m
+  url: https://kubernetes-sigs.github.io/metrics-server/
+---
+apiVersion: helm.toolkit.fluxcd.io/v2beta1
+kind: HelmRelease
+metadata:
+  name: metrics-server
+  namespace: kube-system
+spec:
+  releaseName: metrics-server
+  chart:
+    spec:
+      chart: metrics-server
+      sourceRef:
+        kind: HelmRepository
+        name: metrics-server
+        namespace: kube-system
+      version: 3.7.0
+  interval: 5m
+  values:
+    replicas: 2
+    rbac:
+      pspEnabled: true
+    podDisruptionBudget:
+      enabled: true
+      minAvailable: 1
+    resources:
+      requests:
+        memory: 128Mi
+        cpu: 100m
+      limits:
+        memory: 512Mi
-- 
GitLab