Does PostStart hook have a timeout?

Hi,

According to Container Lifecycle Hooks | Kubernetes and many other posts, it seems the PostStart hook does not have a timeout. But when I use it, I got the FailedPostStartHook error in about 7s after the pod is started. I am not using any probe.

I am trying to put a start-up script in the post start hook. But the script relies on a HTTP endpoint of the pod, so I have to wait for the pod and the application to fully initialized, which takes about 30s.

Is is possible to make the hook timeout longer? Or what is the recommended way to write a start up script that relies functions of the pod?

Thanks

Cluster information:

Kubernetes version: k3s version v1.30.3+k3s1 (f6466040)
Cloud being used: (put bare-metal if not on a public cloud)
Installation method:
Host OS: WSL 2
CNI and version:
CRI and version:

You can format your yaml by highlighting it and pressing Ctrl-Shift-C, it will make your output easier to read.