From 68126afe39320ff69e748269ad5e8555a2da4785 Mon Sep 17 00:00:00 2001 From: Searge Date: Sun, 14 Apr 2024 20:28:12 +0300 Subject: [PATCH] fix: Update Grafana resource limits and disable service account token automounting This commit updates the resource limits for the Grafana container in the `grafana.yaml` file. The CPU limit is set to "1" and the CPU request is set to "0.5". Additionally, the service account token automounting is disabled by setting `automountServiceAccountToken` to false. --- ansible/files/k8s/grafana.yaml | 9 ++++++++- ansible/inventory/cluster.k8s.yml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ansible/files/k8s/grafana.yaml b/ansible/files/k8s/grafana.yaml index ebf5257..fcb8cb0 100644 --- a/ansible/files/k8s/grafana.yaml +++ b/ansible/files/k8s/grafana.yaml @@ -10,7 +10,14 @@ spec: containers: - image: grafana/grafana name: grafana - resources: {} + resources: + limits: + cpu: "1" + memory: "200Mi" + requests: + memory: "100Mi" + cpu: "0.5" dnsPolicy: ClusterFirst restartPolicy: Always + automountServiceAccountToken: false status: {} diff --git a/ansible/inventory/cluster.k8s.yml b/ansible/inventory/cluster.k8s.yml index 5aa9e8a..ba91e13 100644 --- a/ansible/inventory/cluster.k8s.yml +++ b/ansible/inventory/cluster.k8s.yml @@ -2,4 +2,4 @@ plugin: kubernetes.core.k8s connections: - namespaces: - - vault + - vault