This guide walks you through the process of fixing timeouts in readiness- or liveness-probes due to OneAgent injecting into the probe.
In some scenarios, a readiness- or liveness-probe is configured using an exec statement. This configuration causes OneAgent to attempt injection when the probe executable starts. This injection process introduces a slight delay in startup time, which can result in the probe timing out.
Consider the following example of a readiness probe:
readinessProbe:exec:command:- /bin/sh- -ec- vault status -tls-skip-verify
In this example, Vault is the application we want to monitor, but we want to exclude the process used as the readiness-probe from being monitored.
To resolve this issue, you can configure an exception in the settings.
Do not monitor
Command line args
contains
vault status
Once the settings are applied to the cluster, the timeouts should be resolved.