[6.03.20] Pod Spin down
This commit is contained in:
parent
7473cbe559
commit
ec806f644c
@ -6,7 +6,7 @@ metadata:
|
||||
name: RESOURCE_NAME
|
||||
namespace: production
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app: RESOURCE_NAME
|
||||
|
||||
@ -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" ]
|
||||
|
||||
@ -46,7 +46,7 @@ def readiness():
|
||||
}), 503, {'ContentType': 'application/json'}
|
||||
|
||||
def runFlaskProbes():
|
||||
app.run()
|
||||
app.run(port=9090)
|
||||
|
||||
if __name__ == '__main__':
|
||||
runFlaskProbes()
|
||||
Loading…
x
Reference in New Issue
Block a user