From 2945d185ea0824186cd98a3c8042a78bfefa2f13 Mon Sep 17 00:00:00 2001 From: Conan Scott Date: Sun, 28 Dec 2025 11:43:00 +1100 Subject: [PATCH] Added monitoring tweak --- argo-git.yaml | 25 ++++++++ openshift-monitoring-configmap.yaml | 96 +++++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 argo-git.yaml create mode 100644 openshift-monitoring-configmap.yaml diff --git a/argo-git.yaml b/argo-git.yaml new file mode 100644 index 0000000..4804c08 --- /dev/null +++ b/argo-git.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: okd-tuning + namespace: openshift-gitops + annotations: + argocd.argoproj.io/sync-wave: "-5" +spec: + orphanedResources: + warn: false # Disable warning + project: infrastructure + destination: + server: https://kubernetes.default.svc + source: + repoURL: https://gitea.apilab.us/cscott/okd-tuning.git + targetRevision: main + path: . + syncPolicy: + automated: + prune: true + selfHeal: false + syncOptions: + - CreateNamespace=true + - ApplyOutOfSyncOnly=true + - PruneLast=true diff --git a/openshift-monitoring-configmap.yaml b/openshift-monitoring-configmap.yaml new file mode 100644 index 0000000..45f603e --- /dev/null +++ b/openshift-monitoring-configmap.yaml @@ -0,0 +1,96 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: cluster-monitoring-config + namespace: openshift-monitoring +data: + config.yaml: | + alertmanagerMain: + resources: + limits: + cpu: 300m + memory: 500Mi + requests: + cpu: 100m + memory: 200Mi + prometheusK8s: + retention: 7d + resources: + limits: + cpu: 500m + memory: 2Gi + requests: + cpu: 200m + memory: 500Mi + thanosQuerier: + resources: + limits: + cpu: 500m + memory: 500Mi + requests: + cpu: 200m + memory: 200Mi + prometheusOperator: + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 200m + memory: 500Mi + metricsServer: + resources: + requests: + cpu: 10m + memory: 50Mi + limits: + cpu: 50m + memory: 500Mi + kubeStateMetrics: + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 200m + memory: 500Mi + telemeterClient: + resources: + limits: + cpu: 500m + memory: 700Mi + requests: + cpu: 200m + memory: 200Mi + openshiftStateMetrics: + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 200m + memory: 500Mi + nodeExporter: + resources: + limits: + cpu: 50m + memory: 150Mi + requests: + cpu: 20m + memory: 50Mi + monitoringPlugin: + resources: + limits: + cpu: 500m + memory: 1Gi + requests: + cpu: 200m + memory: 500Mi + prometheusOperatorAdmissionWebhook: + resources: + limits: + cpu: 50m + memory: 100Mi + requests: + cpu: 20m + memory: 50Mi