Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 29, 2021 15:51
Show Gist options
  • Save JaniKibichi/801e5b428b882399c9771b032188c31f to your computer and use it in GitHub Desktop.
Save JaniKibichi/801e5b428b882399c9771b032188c31f to your computer and use it in GitHub Desktop.
Deployment with Rolling Updates and Health Probes
apiVersion: apps/v1
kind: Deployment
metadata:
name: bboxx-deployment
labels:
app: bboxx
spec:
replicas: 1
selector:
matchLabels:
app: bboxx
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 33%
template:
metadata:
labels:
app: bboxx
spec:
containers:
- name: bboxx-api
image: gcr.io/vivo-ussd-november-26th-2019/bboxxapi
ports:
- containerPort: 7500
livenessProbe:
httpGet:
path: /health
port: 7500
initialDelaySeconds: 400
periodSeconds: 200
readinessProbe:
httpGet:
path: /health
port: 7500
initialDelaySeconds: 400
periodSeconds: 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment