From 6e692a55de6813e3f1021a2b95b77608d8ef7d56 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Tue, 1 Mar 2022 19:50:15 +0100
Subject: [PATCH] feat(kubenav): Add dashboards for mobile monitoring

---
 infrastructure/kubenav/kustomization.yaml | 9 +++++++++
 infrastructure/kubenav/namespace.yaml     | 7 +++++++
 infrastructure/kustomization.yaml         | 1 +
 3 files changed, 17 insertions(+)
 create mode 100644 infrastructure/kubenav/kustomization.yaml
 create mode 100644 infrastructure/kubenav/namespace.yaml

diff --git a/infrastructure/kubenav/kustomization.yaml b/infrastructure/kubenav/kustomization.yaml
new file mode 100644
index 000000000..1134e63d1
--- /dev/null
+++ b/infrastructure/kubenav/kustomization.yaml
@@ -0,0 +1,9 @@
+apiVersion: kustomize.config.k8s.io/v1beta1
+kind: Kustomization
+namespace: kubenav-system
+resources:
+  - namespace.yaml
+  - https://git.shivering-isles.com/github-mirror/kubenav/deploy/-/raw/ed66ab3bf470fe7a43c6990e39d158b249f5ff7c/dashboards/prometheus-dashboard.yaml
+  - https://git.shivering-isles.com/github-mirror/kubenav/deploy/-/raw/ed66ab3bf470fe7a43c6990e39d158b249f5ff7c/dashboards/cert-manager-dashboard.yaml
+  - https://git.shivering-isles.com/github-mirror/kubenav/deploy/-/raw/ed66ab3bf470fe7a43c6990e39d158b249f5ff7c/dashboards/nginx-ingress-request-handling-performance-dashboard.yaml
+  - https://git.shivering-isles.com/github-mirror/kubenav/deploy/-/raw/ed66ab3bf470fe7a43c6990e39d158b249f5ff7c/dashboards/nginx-ingress-dashboard.yaml
diff --git a/infrastructure/kubenav/namespace.yaml b/infrastructure/kubenav/namespace.yaml
new file mode 100644
index 000000000..75ec10bb6
--- /dev/null
+++ b/infrastructure/kubenav/namespace.yaml
@@ -0,0 +1,7 @@
+apiVersion: v1
+kind: Namespace
+metadata:
+  name: kubenav-system
+  labels:
+    name: kubenav-system
+    kyverno.shivering-isles.com/class: "system"
diff --git a/infrastructure/kustomization.yaml b/infrastructure/kustomization.yaml
index 43663a628..4090e3baa 100644
--- a/infrastructure/kustomization.yaml
+++ b/infrastructure/kustomization.yaml
@@ -13,3 +13,4 @@ resources:
   - flux-system
   - k8up
   - postgres
+  - kubenav
-- 
GitLab