Created
January 2, 2022 16:17
-
-
Save fclesio/de37bbe617a33b28a5afd9bb4fcbb73f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
labels: | |
test: liveness-ml-application | |
name: liveness-ml-application | |
spec: | |
containers: | |
- name: ml_application | |
image: internal_registry/ml_application | |
args: | |
- /bin/sh | |
- -c | |
- python app/ml_api.py | |
livenessProbe: | |
httpGet: | |
scheme: HTTP | |
path: /health | |
port: 8080 | |
initialDelaySeconds: 30 | |
periodSeconds: 30 | |
timeoutSeconds: 10 | |
successThreshold: 1 | |
failureThreshold: 3 | |
readinessProbe: | |
httpGet: | |
scheme: HTTP | |
path: /health | |
port: 8080 | |
initialDelaySeconds: 50 | |
periodSeconds: 30 | |
timeoutSeconds: 20 | |
successThreshold: 1 | |
failureThreshold: 3 | |
strategy: | |
type: RollingUpdate | |
rollingUpdate: | |
maxUnavailable: 0 | |
maxSurge: 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment