1.0.0 • Published 7 years ago
@timelab/pod-ready v1.0.0
pod-ready
Mark or check if a pod is ready. Useful for Kubernetes Readiness Probe.
Kubernetes Usage
readinessProbe:
exec:
command:
- cat
- /tmp/pod-ready
initialDelaySeconds: 5
periodSeconds: 5
or if a more complex handling logic needs to be implemented :
readinessProbe:
exec:
command: # Take care of container WORKDIR when using npx
- npx
- -p
- @timelab/pod-ready
- is-pod-ready
initialDelaySeconds: 5
periodSeconds: 5
Methods
markAsReady: Promise < any >
markAsReadySync
markAsNotReady: Promise < any >
markAsNotReadySync
isReady: Promise < boolean >
isReadySync: boolean
throwIfNotReady: Promise < any >
throwIfNotReadySync
1.0.0
7 years ago