Skip to content

1.29 lifecycle.preStop: Required value: must specify a handler type #122488

@IgorOhrimenko

Description

@IgorOhrimenko

What happened?

#119026
https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/3960-pod-lifecycle-sleep-action/README.md
I used example from KEP but after kubectl apply --filename nginx.yaml I got error:
The Pod "lifecycle" is invalid: spec.containers[0].lifecycle.preStop: Required value: must specify a handler type
I tried kubectl edit deployments.apps nginx but I got the same error.

What did you expect to happen?

deployment.apps/nginx created

How can we reproduce it (as minimally and precisely as possible)?

  1. install 1.29
  2. kubectl apply --filename nginx-sleep.yaml (example from kep)

Anything else we need to know?

No response

Kubernetes version

$ kubectl version
Client Version: v1.29.0
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.0

Cloud provider

self-hosted

OS version

# On Linux:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
$ uname -a
Linux k8s-manager-01-green 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, ...) and versions (if applicable)

flanel helm

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.needs-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/nodeCategorizes an issue or PR as relevant to SIG Node.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions