Skip to content

User-specified readiness probes with periodSeconds>0 should not be ignored #10764

@julz

Description

@julz

What version of Knative?

all recent ones

Expected Behavior

setting a readinessprobe with period>0 should cause the container's readiness to be probed at the requested frequency for the life of the container

Actual Behavior

the probe is ignored after startup. See https://github.com/knative/serving/blob/master/pkg/queue/health/health_state.go#L87-L89.

Steps to Reproduce the Problem

  1. ko apply -f https://github.com/julz/readybutnotsteady/blob/main/service.yaml
  2. Wait for startup to succeed
  3. curl readynotsteady.default.$domain/start-failing
  4. See the pod never goes unready, even though the probe will now fail forever

Metadata

Metadata

Assignees

Labels

area/autoscalegood first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.triage/acceptedIssues which should be fixed (post-triage)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions