website/content/en/examples/pods/probe/tcp-liveness-readiness.yaml

23 lines
405 B
YAML
Raw Normal View History

2017-08-30 12:45:01 +00:00
apiVersion: v1
kind: Pod
metadata:
name: goproxy
labels:
app: goproxy
spec:
containers:
- name: goproxy
2017-12-22 17:55:16 +00:00
image: k8s.gcr.io/goproxy:0.1
2017-08-30 12:45:01 +00:00
ports:
- containerPort: 8080
readinessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 15
periodSeconds: 20