[6.03.20] Pod Spin down

This commit is contained in:
andrewso 2020-03-06 13:53:48 +00:00
parent 7473cbe559
commit ec806f644c
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ metadata:
name: RESOURCE_NAME name: RESOURCE_NAME
namespace: production namespace: production
spec: spec:
replicas: 1 replicas: 0
selector: selector:
matchLabels: matchLabels:
app: RESOURCE_NAME app: RESOURCE_NAME

View File

@ -16,7 +16,7 @@ def callProbes():
if __name__=='__main__': if __name__=='__main__':
# Thread(target=callProbes).start() Thread(target=callProbes).start()
# Dynamically create new child for each currency # Dynamically create new child for each currency
currencies = [ "btc_usd" ] currencies = [ "btc_usd" ]

View File

@ -46,7 +46,7 @@ def readiness():
}), 503, {'ContentType': 'application/json'} }), 503, {'ContentType': 'application/json'}
def runFlaskProbes(): def runFlaskProbes():
app.run() app.run(port=9090)
if __name__ == '__main__': if __name__ == '__main__':
runFlaskProbes() runFlaskProbes()