Skip to content

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

Closed

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

Activity

  1. added
    kind/bug
    on Feb 12, 2021
  2. julz commented on Mar 5, 2021

    @julz
    ContributorAuthor

    I don't think anyone thinks the current behaviour is correct, so I'm going to fix. I guess there's a question as to whether we need a feature flag for a release since it's technically backwards-incompatible to start doing this 🤔

    /assign

  3. evankanderson commented on Mar 15, 2021

    @evankanderson
    Member

    /good-first-issue
    /area autoscale
    /triage accepted

  4. knative-prow-robot commented on Mar 15, 2021

    @knative-prow-robot
    Contributor

    @evankanderson:
    This request has been marked as suitable for new contributors.

    Please ensure the request meets the requirements listed here.

    If this request no longer meets these requirements, the label can be removed
    by commenting with the /remove-good-first-issue command.

    Details

    In response to this:

    /good-first-issue
    /area autoscale
    /triage accepted

    Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

  5. added
    good first issue
    triage/accepted
    help wanted
    on Mar 15, 2021
  6. github-actions commented on Jun 14, 2021

    @github-actions

    This issue is stale because it has been open for 90 days with no
    activity. It will automatically close after 30 more days of
    inactivity. Reopen the issue with /reopen. Mark the issue as
    fresh by adding the comment /remove-lifecycle stale.

  7. added
    lifecycle/stale
    on Jun 14, 2021
  8. markusthoemmes commented on Jun 14, 2021

    @markusthoemmes
    Contributor

    /remove-lifecycle stale

  9. removed
    lifecycle/stale
    on Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/autoscalegood first issuehelp wantedkind/bugtriage/accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions