cpu limit for go.
authorErik Brakkee <erik@brakkee.org>
Fri, 15 Nov 2024 18:43:01 +0000 (19:43 +0100)
committerErik Brakkee <erik@brakkee.org>
Fri, 15 Nov 2024 18:43:01 +0000 (19:43 +0100)
resources/podtemplates/go-1-23-2.yaml

index 5860779c99f814f2bf3d9b8c474ec19ae687cf89..efa9bf6ab047a0b512cf1374c3aabf9d61baa5ff 100644 (file)
@@ -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