Skip to content

Instantly share code, notes, and snippets.

@def
Created December 4, 2018 09:16
Show Gist options
  • Save def/ed382bd54d8308f18ddc7d1f70732269 to your computer and use it in GitHub Desktop.
Save def/ed382bd54d8308f18ddc7d1f70732269 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: webapp
spec:
selector:
matchLabels:
app: webapp
replicas: 2
template:
metadata:
labels:
app: webapp
spec:
containers:
- name: webapp
image: defaultxz/webapp
command: ["/webapp", "0.0.0.0:80"]
ports:
- containerPort: 80
readinessProbe:
httpGet: {path: /, port: 80}
initialDelaySeconds: 1
periodSeconds: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment