Created
December 4, 2018 09:16
-
-
Save def/ed382bd54d8308f18ddc7d1f70732269 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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