Skip to content

Commit

Permalink
fix(kiss): increase kube-apiserver resource limits
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed May 25, 2024
1 parent 31b1cee commit 9ce9b86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/kiss/tasks/join/main-control_plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion templates/kiss/tasks/upgrade/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ce9b86

Please sign in to comment.