From 6577b7199c4149f47ee1db3e641483ae03446b73 Mon Sep 17 00:00:00 2001 From: Erik Brakkee Date: Fri, 15 Nov 2024 19:43:01 +0100 Subject: [PATCH] cpu limit for go. --- resources/podtemplates/go-1-23-2.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/podtemplates/go-1-23-2.yaml b/resources/podtemplates/go-1-23-2.yaml index 5860779..efa9bf6 100644 --- a/resources/podtemplates/go-1-23-2.yaml +++ b/resources/podtemplates/go-1-23-2.yaml @@ -5,6 +5,11 @@ spec: - image: cat.wamblee.org/gobuilder:1.23.2 imagePullPolicy: Always name: go-1-23-2 + resources: + limits: + # otherwise go will try to use all CPUs which will lead to + # too much load. + cpu: 2 volumeMounts: - name: run mountPath: /run -- 2.31.1