From 0d56b044f15f52cf33bae6e9731b1a143fe67f59 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 20:01:40 +0930 Subject: [PATCH 01/16] feat: Add KubestateMetrics App ref: #9 #8 --- manifests/kubestate-metrics/base/kustomization.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 manifests/kubestate-metrics/base/kustomization.yaml diff --git a/manifests/kubestate-metrics/base/kustomization.yaml b/manifests/kubestate-metrics/base/kustomization.yaml new file mode 100644 index 0000000..56ab621 --- /dev/null +++ b/manifests/kubestate-metrics/base/kustomization.yaml @@ -0,0 +1,12 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-clusterRole.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-clusterRoleBinding.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-deployment.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-service.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-serviceAccount.yaml From e81e849540544ee5a573b0d7fbb97bf8f6737161 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 20:03:47 +0930 Subject: [PATCH 02/16] feat(kubestate-metrics): Add Component metrics ref: #9 #8 --- .../components/metrics/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/kubestate-metrics/components/metrics/kustomization.yaml diff --git a/manifests/kubestate-metrics/components/metrics/kustomization.yaml b/manifests/kubestate-metrics/components/metrics/kustomization.yaml new file mode 100644 index 0000000..baea07f --- /dev/null +++ b/manifests/kubestate-metrics/components/metrics/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-serviceMonitor.yaml From 2520e559ecb27dfad95014aab651ac72ea051f2b Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 20:04:03 +0930 Subject: [PATCH 03/16] feat(kubestate-metrics): Add Component mixin-prometheusrule ref: #9 #8 --- .../components/mixin-prometheusrule/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/kubestate-metrics/components/mixin-prometheusrule/kustomization.yaml diff --git a/manifests/kubestate-metrics/components/mixin-prometheusrule/kustomization.yaml b/manifests/kubestate-metrics/components/mixin-prometheusrule/kustomization.yaml new file mode 100644 index 0000000..e6dfe0d --- /dev/null +++ b/manifests/kubestate-metrics/components/mixin-prometheusrule/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-prometheusRule.yaml From 3d8f347c94c3526849ab220bbafb69b5a190e2f6 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 20:04:41 +0930 Subject: [PATCH 04/16] feat(kubestate-metrics): Add Component networkpolicy ref: #9 #8 --- .../components/networkpolicy/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/kubestate-metrics/components/networkpolicy/kustomization.yaml diff --git a/manifests/kubestate-metrics/components/networkpolicy/kustomization.yaml b/manifests/kubestate-metrics/components/networkpolicy/kustomization.yaml new file mode 100644 index 0000000..70c0d71 --- /dev/null +++ b/manifests/kubestate-metrics/components/networkpolicy/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubeStateMetrics-networkPolicy.yaml From ae4ede28013bbee0c938297644b42305e9596aaf Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 20:16:03 +0930 Subject: [PATCH 05/16] feat(kubestate-metrics): Add overlay production ref: #9 #8 --- .../overlays/production/kustomization.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 manifests/kubestate-metrics/overlays/production/kustomization.yaml diff --git a/manifests/kubestate-metrics/overlays/production/kustomization.yaml b/manifests/kubestate-metrics/overlays/production/kustomization.yaml new file mode 100644 index 0000000..06ebc95 --- /dev/null +++ b/manifests/kubestate-metrics/overlays/production/kustomization.yaml @@ -0,0 +1,14 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: metrics + +resources: + - ../../base + +components: + - ../../components/metrics + - ../../components/mixin-prometheusrule + - ../../components/networkpolicy From 0dafd42e11f9ed43c8fb765d810ec0241edd7ebe Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:00:22 +0930 Subject: [PATCH 06/16] feat: Add blackboxExport App ref: #9 #11 --- manifests/blackbox-exporter/base/kustomization.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manifests/blackbox-exporter/base/kustomization.yaml diff --git a/manifests/blackbox-exporter/base/kustomization.yaml b/manifests/blackbox-exporter/base/kustomization.yaml new file mode 100644 index 0000000..4be7900 --- /dev/null +++ b/manifests/blackbox-exporter/base/kustomization.yaml @@ -0,0 +1,13 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-clusterRole.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-clusterRoleBinding.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-configuration.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-deployment.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-service.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-serviceAccount.yaml From c160859660faa5a02f4f0fc130823e11996ce3ca Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:00:42 +0930 Subject: [PATCH 07/16] feat(blackbox-exporter): Add Component networkpolicy ref: #9 #11 --- .../components/networkpolicy/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml diff --git a/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml b/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml new file mode 100644 index 0000000..4ff55af --- /dev/null +++ b/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-networkPolicy.yaml From f611dc395a86d8c2ea4a6c575c8bd0d908486bf1 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:02:44 +0930 Subject: [PATCH 08/16] feat(blackbox-exporter): Add Component metrics ref: #9 #11 --- .../components/metrics/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/blackbox-exporter/components/metrics/kustomization.yaml diff --git a/manifests/blackbox-exporter/components/metrics/kustomization.yaml b/manifests/blackbox-exporter/components/metrics/kustomization.yaml new file mode 100644 index 0000000..0fb29bb --- /dev/null +++ b/manifests/blackbox-exporter/components/metrics/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/blackboxExporter-serviceMonitor.yaml From 2c8ca76e21910296c0d197246341a10df256aee1 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:03:00 +0930 Subject: [PATCH 09/16] feat(blackbox-exporter): Add overlay production ref: #9 #11 --- .../overlays/production/kustomization.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manifests/blackbox-exporter/overlays/production/kustomization.yaml diff --git a/manifests/blackbox-exporter/overlays/production/kustomization.yaml b/manifests/blackbox-exporter/overlays/production/kustomization.yaml new file mode 100644 index 0000000..714e032 --- /dev/null +++ b/manifests/blackbox-exporter/overlays/production/kustomization.yaml @@ -0,0 +1,13 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: metrics + +resources: + - ../../base + +components: + - ../../components/metrics + - ../../components/networkpolicy From d5f97389135c1c2f4c3f91f45beb92ac845214a3 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:05:05 +0930 Subject: [PATCH 10/16] fix(blackbox-exporter): Correct component manifests to be kind Component ref: #9 #11 --- .../blackbox-exporter/components/metrics/kustomization.yaml | 4 ++-- .../components/networkpolicy/kustomization.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manifests/blackbox-exporter/components/metrics/kustomization.yaml b/manifests/blackbox-exporter/components/metrics/kustomization.yaml index 0fb29bb..7e55316 100644 --- a/manifests/blackbox-exporter/components/metrics/kustomization.yaml +++ b/manifests/blackbox-exporter/components/metrics/kustomization.yaml @@ -1,7 +1,7 @@ --- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component # v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 resources: diff --git a/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml b/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml index 4ff55af..9fc2fd3 100644 --- a/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml +++ b/manifests/blackbox-exporter/components/networkpolicy/kustomization.yaml @@ -1,7 +1,7 @@ --- -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component # v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 resources: From 5d229104c148c61df7528830f966da0d9eec5156 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:43:48 +0930 Subject: [PATCH 11/16] feat: Add Prometheus-Adaptor App ref: #9 #12 --- .../prometheus-adaptor/base/kustomization.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 manifests/prometheus-adaptor/base/kustomization.yaml diff --git a/manifests/prometheus-adaptor/base/kustomization.yaml b/manifests/prometheus-adaptor/base/kustomization.yaml new file mode 100644 index 0000000..21de5dc --- /dev/null +++ b/manifests/prometheus-adaptor/base/kustomization.yaml @@ -0,0 +1,18 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-apiService.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-clusterRole.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-clusterRoleAggregatedMetricsReader.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-clusterRoleBinding.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-clusterRoleBindingDelegator.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-clusterRoleServerResources.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-configMap.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-deployment.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-roleBindingAuthReader.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-service.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-serviceAccount.yaml From 1d7214f7477f40fcecb2f04614a002f7a1e7d507 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:44:15 +0930 Subject: [PATCH 12/16] feat(prometheus-adaptor): Add Component metrics ref: #9 #12 --- .../components/metrics/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/prometheus-adaptor/components/metrics/kustomization.yaml diff --git a/manifests/prometheus-adaptor/components/metrics/kustomization.yaml b/manifests/prometheus-adaptor/components/metrics/kustomization.yaml new file mode 100644 index 0000000..9da9076 --- /dev/null +++ b/manifests/prometheus-adaptor/components/metrics/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-serviceMonitor.yaml From aa34b92bd6f86f88a4d014b951e51a3ecabc519f Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:44:36 +0930 Subject: [PATCH 13/16] feat(prometheus-adaptor): Add Component networkPolicy ref: #9 #12 --- .../components/networkpolicy/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/prometheus-adaptor/components/networkpolicy/kustomization.yaml diff --git a/manifests/prometheus-adaptor/components/networkpolicy/kustomization.yaml b/manifests/prometheus-adaptor/components/networkpolicy/kustomization.yaml new file mode 100644 index 0000000..a2ae6cf --- /dev/null +++ b/manifests/prometheus-adaptor/components/networkpolicy/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-networkPolicy.yaml From d50bc2f03c711fc253e9cb16eb54450ab3bb7a23 Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:44:53 +0930 Subject: [PATCH 14/16] feat(prometheus-adaptor): Add Component podDisruptionBudget ref: #9 #12 --- .../prometheus-adaptor/components/pdb/kustomization.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 manifests/prometheus-adaptor/components/pdb/kustomization.yaml diff --git a/manifests/prometheus-adaptor/components/pdb/kustomization.yaml b/manifests/prometheus-adaptor/components/pdb/kustomization.yaml new file mode 100644 index 0000000..059ef2a --- /dev/null +++ b/manifests/prometheus-adaptor/components/pdb/kustomization.yaml @@ -0,0 +1,8 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/prometheusAdapter-podDisruptionBudget.yaml From 9cd86e4808d6ffd2057007c30de496eae8c5ad1f Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:45:29 +0930 Subject: [PATCH 15/16] feat(prometheus-adaptor): Add overlay production ref: #9 #11 --- .../overlays/production/kustomization.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 manifests/prometheus-adaptor/overlays/production/kustomization.yaml diff --git a/manifests/prometheus-adaptor/overlays/production/kustomization.yaml b/manifests/prometheus-adaptor/overlays/production/kustomization.yaml new file mode 100644 index 0000000..5fe24b8 --- /dev/null +++ b/manifests/prometheus-adaptor/overlays/production/kustomization.yaml @@ -0,0 +1,14 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +namespace: metrics + +resources: + - ../../base + +components: + - ../../components/metrics + - ../../components/networkpolicy + # - ../../components/pdb From 30254759551fed30c3a6f4c5d7ff59c1aa26e2fa Mon Sep 17 00:00:00 2001 From: Jon Date: Mon, 16 Jun 2025 21:48:51 +0930 Subject: [PATCH 16/16] feat(prometheus): Add component kubernetes controlplane ref: #9 #10 --- .../kubernetes-controlplane/kustomization.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 manifests/prometheus/components/kubernetes-controlplane/kustomization.yaml diff --git a/manifests/prometheus/components/kubernetes-controlplane/kustomization.yaml b/manifests/prometheus/components/kubernetes-controlplane/kustomization.yaml new file mode 100644 index 0000000..aa31eb6 --- /dev/null +++ b/manifests/prometheus/components/kubernetes-controlplane/kustomization.yaml @@ -0,0 +1,13 @@ +--- + +apiVersion: kustomize.config.k8s.io/v1alpha1 +kind: Component + +# v 0.15.0 = 68444c6b63b032a8761da09182ef63d89cc65cd5 +resources: + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-prometheusRule.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-serviceMonitorApiserver.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-serviceMonitorCoreDNS.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-serviceMonitorKubeControllerManager.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-serviceMonitorKubeScheduler.yaml + - https://raw.githubusercontent.com/prometheus-operator/kube-prometheus/68444c6b63b032a8761da09182ef63d89cc65cd5/manifests/kubernetesControlPlane-serviceMonitorKubelet.yaml