Monitoring Application Health, Readiness & Liveness Probe (OpenShift Tutorial Part-10) Red Hat EX288

Опубликовано: 03 Октябрь 2024
на канале: Tech Tejendra
4,035
40

Monitoring Application Health
Startup Probe
Readiness Probe
Liveness Probe

3 Types of methods
HTTP Checks
Container Execution Checks
TCP Socket Checks

oc new-project developer-probes

oc new-app \
--name probes --context-dir probes --build-env \
npm_config_registry=http://nexus-common.apps.na410.prod.n... \
nodejs:16-ubi8~https://github.com/tsrana/DO288-apps

oc set probe deployment probes --liveness \
--get-url=http://:8080/healthz \
--initial-delay-seconds=2 --timeout-seconds=2

oc set probe deployment probes --readiness \
--get-url=http://:8080/ready \
--initial-delay-seconds=2 --timeout-seconds=2

oc describe deployment probes