[6.03.20] Probing yet yet yet again
This commit is contained in:
parent
1d37295f3e
commit
8f97b5cef1
@ -64,31 +64,31 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- containerPort: 9090
|
- containerPort: 9090
|
||||||
name: RESOURCE_NAME
|
name: RESOURCE_NAME
|
||||||
# livenessProbe:
|
livenessProbe:
|
||||||
# httpGet:
|
httpGet:
|
||||||
# path: /health
|
path: /health
|
||||||
# port: 9090
|
port: 9090
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 30
|
periodSeconds: 30
|
||||||
# timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
# successThreshold: 1
|
successThreshold: 1
|
||||||
# failureThreshold: 1
|
failureThreshold: 1
|
||||||
# readinessProbe:
|
readinessProbe:
|
||||||
# httpGet:
|
httpGet:
|
||||||
# port: 9090
|
port: 9090
|
||||||
# path: /readiness
|
path: /readiness
|
||||||
# initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
# periodSeconds: 5
|
periodSeconds: 5
|
||||||
# timeoutSeconds: 1
|
timeoutSeconds: 1
|
||||||
# successThreshold: 1
|
successThreshold: 1
|
||||||
# failureThreshold: 1
|
failureThreshold: 1
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 10m
|
cpu: 10m
|
||||||
memory: 16Mi
|
memory: 16Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 50m
|
cpu: 25m
|
||||||
memory: 32Mi
|
memory: 32Mi
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
@ -46,7 +46,7 @@ def readiness():
|
|||||||
}), 503, {'ContentType': 'application/json'}
|
}), 503, {'ContentType': 'application/json'}
|
||||||
|
|
||||||
def runFlaskProbes():
|
def runFlaskProbes():
|
||||||
app.run(port=9090)
|
app.run(port=9090, host="0.0.0.0")
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
runFlaskProbes()
|
runFlaskProbes()
|
||||||
Loading…
x
Reference in New Issue
Block a user