container: fix liveness probe
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 <ondrej@budai.cz>
This commit is contained in:
parent
7a194bfcb5
commit
fc86ffd968
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ objects:
|
|||
exec:
|
||||
command:
|
||||
- cat
|
||||
- /tmp/live
|
||||
- /tmp/osbuild-composer-live
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue