Skip to content

Commit

Permalink
Ensure liveness and readiness probes are written ASAP, and also ensur…
Browse files Browse the repository at this point in the history
…e that probes wait 10 mintues. (#166)
  • Loading branch information
Pasarus authored Nov 26, 2024
1 parent 223fe91 commit 34a6458
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions file_watcher/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def start_watching(self) -> None:
Start the PollingObserver with the queue based event handler and the given queue
:return: None
"""
write_readiness_probe_file()

def _event_occurred(path_to_add: Union[Path, None]) -> None:
if path_to_add is not None:
Expand Down
4 changes: 2 additions & 2 deletions file_watcher_operator/file_watcher_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def generate_deployment_body(
else
exit 1
fi
initialDelaySeconds: 10
initialDelaySeconds: 600
periodSeconds: 10
livenessProbe:
exec:
Expand All @@ -127,7 +127,7 @@ def generate_deployment_body(
else
exit 1
fi
initialDelaySeconds: 10
initialDelaySeconds: 600
failureThreshold: 3
periodSeconds: 10
volumeMounts:
Expand Down

0 comments on commit 34a6458

Please sign in to comment.