From: Erik Brakkee Date: Fri, 15 Nov 2024 18:43:01 +0000 (+0100) Subject: cpu limit for go. X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=6577b7199c4149f47ee1db3e641483ae03446b73;p=pipelinelib cpu limit for go. --- 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