Skip to content

Instantly share code, notes, and snippets.

@boriphuth
Created July 28, 2020 08:48
Show Gist options
  • Save boriphuth/b23ecc20d7538709c30d9eba8cc3f261 to your computer and use it in GitHub Desktop.
Save boriphuth/b23ecc20d7538709c30d9eba8cc3f261 to your computer and use it in GitHub Desktop.
Kubernetes deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: app
spec:
minReadySeconds: 10
replicas: 1
selector:
matchLabels:
name: app
template:
metadata:
labels:
name: app
spec:
containers:
- name: web
image: learnk8s/app:1.0.0
ports:
- containerPort: 8080
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 1
timeoutSeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 1
timeoutSeconds: 1
periodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment