Created
July 28, 2020 08:48
-
-
Save boriphuth/b23ecc20d7538709c30d9eba8cc3f261 to your computer and use it in GitHub Desktop.
Kubernetes deployment
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: 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