From 9ce9b867b015c01d5b303f6ebd1032682cb86e38 Mon Sep 17 00:00:00 2001 From: Ho Kim Date: Sat, 25 May 2024 22:23:18 +0000 Subject: [PATCH] fix(kiss): increase kube-apiserver resource limits --- templates/kiss/tasks/join/main-control_plane.yaml | 2 +- templates/kiss/tasks/upgrade/main.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/kiss/tasks/join/main-control_plane.yaml b/templates/kiss/tasks/join/main-control_plane.yaml index 5561875c..793b26aa 100644 --- a/templates/kiss/tasks/join/main-control_plane.yaml +++ b/templates/kiss/tasks/join/main-control_plane.yaml @@ -17,7 +17,7 @@ cat /etc/kubernetes/manifests/kube-apiserver.yaml | grep -Po '^ +memory:' >/dev/null 2>/dev/null || sed -i - 's/^\( \+\) \(cpu\:.\+\)$/\1 \2\n\1 memory: 256Mi\n\1limits:\n\1 cpu: 2000m\n\1 memory: 2Gi/g' + 's/^\( \+\) \(cpu\:.\+\)$/\1 \2\n\1 memory: 256Mi\n\1limits:\n\1 cpu: "4"\n\1 memory: 4Gi/g' /etc/kubernetes/manifests/kube-apiserver.yaml - hosts: target diff --git a/templates/kiss/tasks/upgrade/main.yaml b/templates/kiss/tasks/upgrade/main.yaml index 907a0658..f5ac8add 100644 --- a/templates/kiss/tasks/upgrade/main.yaml +++ b/templates/kiss/tasks/upgrade/main.yaml @@ -25,5 +25,5 @@ cat /etc/kubernetes/manifests/kube-apiserver.yaml | grep -Po '^ +memory:' >/dev/null 2>/dev/null || sed -i - 's/^\( \+\) \(cpu\:.\+\)$/\1 \2\n\1 memory: 256Mi\n\1limits:\n\1 cpu: 2000m\n\1 memory: 2Gi/g' + 's/^\( \+\) \(cpu\:.\+\)$/\1 \2\n\1 memory: 256Mi\n\1limits:\n\1 cpu: "4"\n\1 memory: 4Gi/g' /etc/kubernetes/manifests/kube-apiserver.yaml