Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

startupProbe being ignored after restarting the pod #102230

Closed
judab5ericom opened this issue May 23, 2021 · 9 comments
Closed

startupProbe being ignored after restarting the pod #102230

judab5ericom opened this issue May 23, 2021 · 9 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@judab5ericom
Copy link

judab5ericom commented May 23, 2021

/sig architecture
/wg K8s Infra

What happened:

Kubernetes bring up Container successfully perform StartupProbe properly,
a few minutes later I make the POD restart by fail the Liveness Prob.
The container goes down and in the next creation of the POD the startupProbe does not run at all,
the container starts directly with Liveness and Readiness while startupProbe skipped

What you expected to happen:

I expect that startup probe will run every POD creation

How to reproduce it (as minimally and precisely as possible):

Configure POD with all three probes: Startup/Liveness/Readiness Probe (Probe should configure to run as EXEC shell script)
Verify that StartupProbe pass sucessfully, Verify that Liveness and Readiness pass sucessfully
Wait few minutes
Make Liveness to fail
Verify that POD restart due to Liveness Check,
Verify that POD go up again
Check Logs you should see Liveness probe without startup probe

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
    Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-18T16:12:00Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"linux/amd64"}
    Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.18", GitCommit:"6f6ce59dc8fefde25a3ba0ef0047f4ec6662ef24", GitTreeState:"clean", BuildDate:"2021-04-15T03:23:41Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"}

YAML Code Snip:

  • Cloud provider or hardware configuration:
    Instance run with Ubuntu
    $ cat /etc/issue
    Ubuntu 18.04.5 LTS \n \l

Using Rancher Docker Kubernetes

  • OS (e.g: cat /etc/os-release):

  • Kernel (e.g. uname -a):
    Linux xxx 5.4.0-1044-oracle Some documentation tweaks #47~18.04.1-Ubuntu SMP Thu Apr 22 03:29:37 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

  • Install tools:
    Rancher

  • Network plugin and version (if this is a network-related bug):

  • Others:
    YAML
    startupProbe:
    exec:
    command:
    - /startup_probe.sh
    failureThreshold: 30
    periodSeconds: 10
    successThreshold: 1
    timeoutSeconds: 1

livenessProbe:
exec:
command:
- /liveness.sh
failureThreshold: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5

   readinessProbe:
      exec:
        command:
        - /readiness.sh
      failureThreshold: 3
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 5
@judab5ericom judab5ericom added the kind/bug Categorizes issue or PR as related to a bug. label May 23, 2021
@k8s-ci-robot k8s-ci-robot added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 23, 2021
@judab5ericom
Copy link
Author

/sig architecture
/wg K8s Infra

@k8s-ci-robot
Copy link
Contributor

@judab5ericom: The label(s) wg/k8s, wg/infra cannot be applied, because the repository doesn't have them.

In response to this:

/sig architecture
/wg K8s Infra

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.

@k8s-ci-robot k8s-ci-robot added sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 23, 2021
@odinuge
Copy link
Member

odinuge commented May 23, 2021

/cc @matthyx

@matthyx
Copy link
Contributor

matthyx commented May 23, 2021

/assign
Will take a look on Tuesday... I think this was fixed on master but not sure about cherry picks.
I'll search once back in front of a real computer...

@matthyx
Copy link
Contributor

matthyx commented May 23, 2021

/sig node

@k8s-ci-robot k8s-ci-robot added the sig/node Categorizes an issue or PR as relevant to SIG Node. label May 23, 2021
@wzshiming
Copy link
Member

wzshiming commented May 24, 2021

This is a duplicate Issue #101064
The affected versions are 1.18.18, 1.19.10, 1.20.6, 1.21.0, please try another version.

@pacoxu
Copy link
Member

pacoxu commented Jun 24, 2021

@wzshiming it shoud be fixed in 1.18.19 and 1.18.20 by #101226.
/close

Feel free to reopen if it still exists. @judab5ericom

@k8s-ci-robot
Copy link
Contributor

@pacoxu: Closing this issue.

In response to this:

@wzshiming it shoud be fixed in 1.18.19 and 1.18.20 by #101226.
/close

Feel free to reopen if it still exists. @judab5ericom

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.

@pacoxu
Copy link
Member

pacoxu commented Jun 24, 2021

/remove-sig architecture
/triage accepted

@k8s-ci-robot k8s-ci-robot added triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed sig/architecture Categorizes an issue or PR as relevant to SIG Architecture. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jun 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

No branches or pull requests

6 participants