From ec806f644cf31bf48724ee2266acee0b06694e8e Mon Sep 17 00:00:00 2001 From: andrewso <9V5f1FkzI2LD> Date: Fri, 6 Mar 2020 13:53:48 +0000 Subject: [PATCH] [6.03.20] Pod Spin down --- configuration/kubernetes/deployment.yaml | 2 +- src/main.py | 2 +- src/probes/probes.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/configuration/kubernetes/deployment.yaml b/configuration/kubernetes/deployment.yaml index a8ab798..1834b6d 100644 --- a/configuration/kubernetes/deployment.yaml +++ b/configuration/kubernetes/deployment.yaml @@ -6,7 +6,7 @@ metadata: name: RESOURCE_NAME namespace: production spec: - replicas: 1 + replicas: 0 selector: matchLabels: app: RESOURCE_NAME diff --git a/src/main.py b/src/main.py index a74e9f4..fbcd602 100644 --- a/src/main.py +++ b/src/main.py @@ -16,7 +16,7 @@ def callProbes(): if __name__=='__main__': - # Thread(target=callProbes).start() + Thread(target=callProbes).start() # Dynamically create new child for each currency currencies = [ "btc_usd" ] diff --git a/src/probes/probes.py b/src/probes/probes.py index 4bfc6b3..af0d497 100644 --- a/src/probes/probes.py +++ b/src/probes/probes.py @@ -46,7 +46,7 @@ def readiness(): }), 503, {'ContentType': 'application/json'} def runFlaskProbes(): - app.run() + app.run(port=9090) if __name__ == '__main__': runFlaskProbes() \ No newline at end of file