Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Knative service pods scaling down to zero even if minScale is set to 1 #16223

@lsergio

Description

@lsergio

Ask your question here:

Hi all.
I have some Knative Services which are configured to have at least 1 replica:

spec:
  template:
    metadata:
      annotations:
        autoscaling.knative.dev/minScale: "1"

However, I see 0 replicas for those services.

When I check the autoscaler logs I see messages like:

{"severity":"INFO","timestamp":"2025-11-04T04:01:41.965417619Z","logger":"autoscaler","caller":"kpa/kpa.go:157","message":"SKS should be in Proxy mode: want = -1, ebc = -111, #act's = 3 PA Inactive? = true","commit":"4853ead","knative.dev/controller":"knative.dev.serving.pkg.reconciler.autoscaling.kpa.Reconciler","knative.dev/kind":"autoscaling.internal.knative.dev.PodAutoscaler","knative.dev/traceid":"9b82e383-4a86-4ca1-bd91-7cdea766f54e","knative.dev/key":"dvdfyi9127/deploy-e57863cc-e0ab-46ec-9126-eaf2b9ecf227-00002"}
{"severity":"INFO","timestamp":"2025-11-04T04:01:41.965447059Z","logger":"autoscaler","caller":"kpa/kpa.go:177","message":"PA scale got=0, want=-1, desiredPods=-1 ebc=-111","commit":"4853ead","knative.dev/controller":"knative.dev.serving.pkg.reconciler.autoscaling.kpa.Reconciler","knative.dev/kind":"autoscaling.internal.knative.dev.PodAutoscaler","knative.dev/traceid":"9b82e383-4a86-4ca1-bd91-7cdea766f54e","knative.dev/key":"dvdfyi9127/deploy-e57863cc-e0ab-46ec-9126-eaf2b9ecf227-00002"}

where the desiredPods value is -1, and the current value is 0

Is this a known issue?

This is production environment, so I cannot edit the service for testing. In dev environments I could not reproduce the issue yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionFurther information is requestedtriage/needs-user-inputIssues which are waiting on a response from the reporter

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions