Skip to content

Commit

Permalink
Add liveness/readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
krak3n committed Apr 14, 2017
1 parent 056df28 commit 6899cc6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions k8s.yml
Expand Up @@ -78,6 +78,26 @@ spec:
mountPath: /etc/nginx/conf.d
ports:
- containerPort: 80
readinessProbe:
failureThreshold: 3
httpGet:
path: /ws
port: 80
scheme: HTTP
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
failureThreshold: 3
httpGet:
path: /ws
port: 80
scheme: HTTP
initialDelaySeconds: 1
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
# Web Frontend Application
- name: websocket
image: gcr.io/soon-fm-production/websocket:$TAG
Expand Down

0 comments on commit 6899cc6

Please sign in to comment.