Go version

golang:1.25rc1 / ImageID: d86a0805aa18

Output of go env in your module/workspace:

I am running Go using the golang:1.25rc1 image

What did you do?

I am running a Go service with CPU limits set to 250m, but GOMAXPROCS is reporting 2 instead of 1.

You can see that setting under /zarf/k8s/dev/sales/dev-sales-patch-deploy.yaml in the bill/bug branch.

I am running on a: - Apple M2 Max OS 15.5 (24F74) - Docker(Engine: 28.2.2, Compose: v2.36.2-desktop.1, Credential Helper: v0.9.3, Kubernetes: v1.32.2) - Resources: CPU: 4, Memory: 12 GiB

Here are the steps to reproduce the problem:

  1. Clone https://github.com/ardanlabs/service
  2. git switch bill/bug
  3. Run make bug-run to build the images, start K8s, and apply manifests.
  4. Run make live to see the GOMAXPROCS number

All of the Docker and K8s stuff is under /zarf/

You can bring down the system using make dev-down

You can restart the pod is necessary using make dev-restart

What did you see happen?

After running make live I see that the GOMAXPROCS variable is 2.

{"status":"up","build":"0.0.1","host":"ardan-starter-cluster-control-plane","name":"sales-79b7b6b5d5-qhx6q","podIP":"172.19.0.2","node":"ardan-starter-cluster-control-plane","namespace":"sales-system","GOMAXPROCS":2}

What did you expect to see?

After running make live I expected the service to have a GOMAXPROCS of 1.

{"status":"up","build":"0.0.1","host":"ardan-starter-cluster-control-plane","name":"sales-79b7b6b5d5-qhx6q","podIP":"172.19.0.2","node":"ardan-starter-cluster-control-plane","namespace":"sales-system","GOMAXPROCS":1}

Comment From: gabyhelp

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

Comment From: seankhliao

This is working as intended from #73193