Skip to content

Instantly share code, notes, and snippets.

@fclesio
Created January 2, 2022 16:17
Show Gist options
  • Save fclesio/de37bbe617a33b28a5afd9bb4fcbb73f to your computer and use it in GitHub Desktop.
Save fclesio/de37bbe617a33b28a5afd9bb4fcbb73f 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: 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