[6.03.20] Pod Spin down
This commit is contained in:
parent
7473cbe559
commit
ec806f644c
@ -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
|
||||||
|
|||||||
@ -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" ]
|
||||||
|
|||||||
@ -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()
|
||||||
Loading…
x
Reference in New Issue
Block a user