Can I use an HTTP POST in a preStop lifecycle hook in a Kubernetes job?
You can add an exec
lifecycle hook since httpPost
is not a valid one, and assuming you have curl
in your containers:
lifecycle: preStop: exec: command: ["curl", "-XPOST", "http://URL"]