pgrep used in /scripts/check-live.sh is not available in runner v16.3.1
$docker run -it --entrypoint=/bin/sh registry.gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/gitlab-runner-ocp:v16.2.0
sh-4.4$ pgrep
pgrep: no matching criteria specified
Try `pgrep --help' for more information.
$docker run -it --entrypoint=/bin/sh registry.gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/gitlab-runner-ocp:v16.3.0
sh-4.4$ pgrep
pgrep: no matching criteria specified
Try `pgrep --help' for more information.
sh-4.4$ pgrep --version
pgrep from procps-ng 3.3.15
$docker run -it --entrypoint=/bin/sh registry.gitlab.com/gitlab-org/ci-cd/gitlab-runner-ubi-images/gitlab-runner-ocp:v16.3.1
sh-4.4$ pgrep
sh: pgrep: command not found
We are using gitlab runner operator and this is leading to our runner pods restarting with the below error:
Readiness probe failed: /scripts/check-live: line 2: /usr/bin/pgrep: No such file or directory /scripts/check-live: line 4: /usr/bin/pgrep: No such file or directory
Edited by Mourya Teja Thota