Skip to content

Commit

Permalink
liveness-readiness
Browse files Browse the repository at this point in the history
  • Loading branch information
wardviaene committed Aug 7, 2018
1 parent e302b12 commit b7f16e8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions deployment/helloworld-liveness-readiness.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: helloworld-readiness
spec:
replicas: 3
template:
metadata:
labels:
app: helloworld
spec:
containers:
- name: k8s-demo
image: wardviaene/k8s-demo
ports:
- name: nodejs-port
containerPort: 3000
livenessProbe:
httpGet:
path: /
port: nodejs-port
initialDelaySeconds: 15
timeoutSeconds: 30
readinessProbe:
httpGet:
path: /
port: nodejs-port
initialDelaySeconds: 15
timeoutSeconds: 30

0 comments on commit b7f16e8

Please sign in to comment.