stargz-snapshotter icon indicating copy to clipboard operation
stargz-snapshotter copied to clipboard

Support injecting liveness / readiness probe scripts

Open AkihiroSuda opened this issue 3 years ago • 1 comments

It would be great if we can inject scripts for Kubernetess livenessProbes and readinessProbes: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

The script path would be like /.stargz-snapshotter/.probes/liveness.

If depending on sh inside container is problematic, we can also consider bind-mounting a statically built ELF binary.

AkihiroSuda avatar Feb 24 '21 04:02 AkihiroSuda

SGTM about the statically built livenessProbes.

ktock avatar Feb 24 '21 05:02 ktock