Skip to content

Commit 8e4637c

Browse files
committed
chore(pod): modify readiness check
1 parent 8149122 commit 8e4637c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • rootfs/scheduler/resources

rootfs/scheduler/resources/pod.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ def _set_health_checks(self, container, env, **kwargs):
290290
healthchecks['livenessProbe']['httpGet']['port'] = env.get(
291291
'PORT', DEFAULT_CONTAINER_PORT)
292292
container.update(healthchecks)
293-
elif kwargs.get('routable', False):
293+
if kwargs.get('routable', False) and healthchecks.get('readinessProbe') is None:
294294
# If routable, set the default probe
295295
container.update(
296296
self._default_container_readiness_probe(env.get('PORT', DEFAULT_CONTAINER_PORT)))

0 commit comments

Comments
 (0)