From fc86ffd9683cc32cf780274c5ef567954cca0d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 25 Mar 2022 13:59:25 +0100 Subject: [PATCH] container: fix liveness probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't have permissions to write to /run when running on OpenShift so let's just use /tmp and change the filename to prevent any conflicts. Signed-off-by: Ondřej Budai --- containers/osbuild-composer/entrypoint.py | 2 +- templates/composer.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/containers/osbuild-composer/entrypoint.py b/containers/osbuild-composer/entrypoint.py index 6a973bd2b..1fb2bd2e1 100644 --- a/containers/osbuild-composer/entrypoint.py +++ b/containers/osbuild-composer/entrypoint.py @@ -310,7 +310,7 @@ class Cli(contextlib.AbstractContextManager): signal.signal(signal.SIGTERM, handler) - liveness = pathlib.Path('/run/live') + liveness = pathlib.Path('/tmp/osbuild-composer-live') liveness.touch() diff --git a/templates/composer.yml b/templates/composer.yml index 16f0d170e..0453f49b8 100644 --- a/templates/composer.yml +++ b/templates/composer.yml @@ -44,7 +44,7 @@ objects: exec: command: - cat - - /tmp/live + - /tmp/osbuild-composer-live periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1