Skip to content

Instantly share code, notes, and snippets.

@fclesio
Created January 2, 2022 16:17
Show Gist options
  • Save fclesio/8ac40fe33128f28461a1320e955e2a23 to your computer and use it in GitHub Desktop.
Save fclesio/8ac40fe33128f28461a1320e955e2a23 to your computer and use it in GitHub Desktop.
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: 5
readinessProbe:
httpGet:
scheme: HTTP
path: /health
port: 8080
initialDelaySeconds: 50
periodSeconds: 30
timeoutSeconds: 20
successThreshold: 1
failureThreshold: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment