Moving to kubernetes-users

On Thu, Jan 04, 2018 at 01:37:12AM -0800, Rémi Bèges wrote:
> Hi,
> 
> I would like to perform external HTTPS request during the postStart and 
> preStop events, in order to notify a remote API. Is this possible ?
> 
> Also, I would need to pass an identification token and a container token, 
> to validate the request and identify which job/pod/container is being 
> started/ended. Is it possible to access environment variable inside the 
> handlers ?

If you use a script in the container and specify it in the postStart and preStop
events?

Note that in some circumstances (like a node crash, for example) some will not
be called. So, you would find problems if that is a hard-dependency (like with
any system, bare metal too, that may just "freeze").



Thanks a lot,
Rodrigo

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to