k8s: add liveness/readiness probes

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-06-28 17:55:51 -07:00 committed by Simon Zeltser
parent 4ac66b072a
commit 781cdaed9e
9 changed files with 73 additions and 1 deletions

View file

@ -12,7 +12,15 @@ spec:
- name: server
image: emailservice
ports:
- containerPort: 5000
- containerPort: 8080
readinessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
livenessProbe:
periodSeconds: 5
tcpSocket:
port: 8080
resources:
requests:
cpu: 100m