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

Stale image in "Configure Liveness, Readiness and Startup Probes" #49406

Open
harshitsahu2311 opened this issue Jan 13, 2025 · 12 comments · May be fixed by #49474
Open

Stale image in "Configure Liveness, Readiness and Startup Probes" #49406

harshitsahu2311 opened this issue Jan 13, 2025 · 12 comments · May be fixed by #49474
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. language/en Issues or PRs related to English language triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@harshitsahu2311
Copy link

In this document the yaml file for liveness probe using registry.k8s.io/busybox is showing depricated, but as I used busybox official image it is running as expected outputs.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Jan 13, 2025
@sftim
Copy link
Contributor

sftim commented Jan 13, 2025

/retitle Stale image in "Configure Liveness, Readiness and Startup Probes"
/language en

@k8s-ci-robot k8s-ci-robot changed the title Configure Liveness, Readiness and Startup Probes Stale image in "Configure Liveness, Readiness and Startup Probes" Jan 13, 2025
@k8s-ci-robot k8s-ci-robot added the language/en Issues or PRs related to English language label Jan 13, 2025
@sftim
Copy link
Contributor

sftim commented Jan 13, 2025

@sftim
Copy link
Contributor

sftim commented Jan 13, 2025

Assuming that we stick with Busybox:

  • we should pin to a specific busybox image version
  • we should make sure to use a current container image for Busybox (doesn't have to come from registry.k8s.io)

@sftim
Copy link
Contributor

sftim commented Jan 13, 2025

/kind bug
/triage accepted

@k8s-ci-robot k8s-ci-robot added kind/bug Categorizes issue or PR as related to a bug. triage/accepted Indicates an issue or PR is ready to be actively worked on. and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 13, 2025
@iheartNathan
Copy link
Contributor

iheartNathan commented Jan 17, 2025

@harshitsahu2311 where are you getting this deprecated message for registry.k8s.io/busybox?
image: registry.k8s.io/busybox is pulling the lastest tag for busybox

    containerStatuses:
    - containerID: containerd://0c37f27fe26d9746aad3c356540355da531ab52f5a3dea2d49b7cbdc8fa47133
      image: registry.k8s.io/busybox:latest
      imageID: sha256:36a4dca0fe6fb2a5133dc11a6c8907a97aea122613fa3e98be033959a0821a1f
$ crane ls registry.k8s.io/busybox --full-ref
registry.k8s.io/busybox:1.24
registry.k8s.io/busybox:1.27
registry.k8s.io/busybox:1.27.2
registry.k8s.io/busybox:latest

The container is killed and recreated based on the failed liveness probe check as expected.

Events:
  Type     Reason     Age                  From               Message
  ----     ------     ----                 ----               -------
  Normal   Scheduled  4m8s                 default-scheduler  Successfully assigned default/liveness-exec to node01
  Normal   Pulled     4m7s                 kubelet            Successfully pulled image "registry.k8s.io/busybox" in 593ms (593ms including waiting). Image size: 1144547 bytes.
  Normal   Pulled     2m52s                kubelet            Successfully pulled image "registry.k8s.io/busybox" in 595ms (595ms including waiting). Image size: 1144547 bytes.
  Normal   Created    97s (x3 over 4m7s)   kubelet            Created container liveness
  Normal   Started    97s (x3 over 4m7s)   kubelet            Started container liveness
  Normal   Pulled     97s                  kubelet            Successfully pulled image "registry.k8s.io/busybox" in 551ms (551ms including waiting). Image size: 1144547 bytes.
  Warning  Unhealthy  53s (x9 over 3m33s)  kubelet            Liveness probe failed: cat: can't open '/tmp/healthy': No such file or directory
  Normal   Killing    53s (x3 over 3m23s)  kubelet            Container liveness failed liveness probe, will be restarted
  Normal   Pulling    23s (x4 over 4m8s)   kubelet            Pulling image "registry.k8s.io/busybox"
k get po --watch
NAME            READY   STATUS    RESTARTS   AGE
liveness-exec   1/1     Running   0          3s
liveness-exec   1/1     Running   1 (1s ago)   76s
liveness-exec   1/1     Running   2 (2s ago)   2m32s
liveness-exec   1/1     Running   3 (2s ago)   3m47s

@harshitsahu2311
Copy link
Author

When I was trying to execute this manifest , I was getting an error message on minikube cluster and pod was also on Pending State

@iheartNathan
Copy link
Contributor

iheartNathan commented Jan 17, 2025

@harshitsahu2311 Thanks.
I was testing in Killercoda and Kind. I'm getting ImagePullBackOff testing on a Docker Desktop Kubernetes cluster, are you using Docker as the driver for your minikube cluster?

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Pulling    22s (x2 over 39s)  kubelet            Pulling image "registry.k8s.io/busybox"
  Warning  Failed     21s (x2 over 38s)  kubelet            Failed to pull image "registry.k8s.io/busybox": Error response from daemon: [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of registry.k8s.io/busybox:latest to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/
  Warning  Failed     21s (x2 over 38s)  kubelet            Error: ErrImagePull
  Normal   BackOff    10s (x4 over 37s)  kubelet            Back-off pulling image "registry.k8s.io/busybox"
  Warning  Failed     10s (x4 over 37s)  kubelet            Error: ImagePullBackOff

Looks like registry.k8s.io/busybox:latest is using a deprecated image format.

@harshitsahu2311
Copy link
Author

Yes, I was using docker as the driver for minikube cluster, Is it coming due to this driver??

@iheartNathan
Copy link
Contributor

OK, registry.k8s.io/busybox:1.27 and registry.k8s.io/busybox:1.27.2 are in the current supported format.
We might have to update the docs to use any of these images.

@iheartNathan
Copy link
Contributor

/assign

@iheartNathan iheartNathan linked a pull request Jan 17, 2025 that will close this issue
@iheartNathan
Copy link
Contributor

@harshitsahu2311 has to do with the image format of registry.k8s.io/busybox:lastest

@harshitsahu2311
Copy link
Author

Yes this image is right now, My name can also be mentioned on contributors list?

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. language/en Issues or PRs related to English language triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants