Skip to content

Commit 61b6858

Browse files
committed
fix(scheduler): remove unused health check config option: HEALTCHECK_PORT
the port information comes from the application k8s service instead and has for a long time Fixes #778
1 parent c7a4291 commit 61b6858

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

rootfs/api/models/config.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def healthcheck(self):
3838
path = self.values.get('HEALTHCHECK_URL', '/')
3939
timeout = int(self.values.get('HEALTHCHECK_TIMEOUT', 50))
4040
delay = int(self.values.get('HEALTHCHECK_INITIAL_DELAY', 50))
41-
port = int(self.values.get('HEALTHCHECK_PORT', 5000))
4241
period_seconds = int(self.values.get('HEALTHCHECK_PERIOD_SECONDS', 10))
4342
success_threshold = int(self.values.get('HEALTHCHECK_SUCCESS_THRESHOLD', 1))
4443
failure_threshold = int(self.values.get('HEALTHCHECK_FAILURE_THRESHOLD', 3))
@@ -47,7 +46,6 @@ def healthcheck(self):
4746
'path': path,
4847
'timeout': timeout,
4948
'delay': delay,
50-
'port': port,
5149
'period_seconds': period_seconds,
5250
'success_threshold': success_threshold,
5351
'failure_threshold': failure_threshold,
@@ -66,7 +64,6 @@ def set_healthchecks(self):
6664

6765
# HTTP GET related
6866
self.values['HEALTHCHECK_URL'] = health['path']
69-
self.values['HEALTHCHECK_PORT'] = health['port']
7067

7168
# Number of seconds after which the probe times out.
7269
# More info: http://releases.k8s.io/HEAD/docs/user-guide/pod-states.md#container-probes

0 commit comments

Comments
 (0)