Create pod-with-tcp-socket-healthcheck.yaml
This commit is contained in:
parent
38964af6f1
commit
d71ce6e8f0
|
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: pod-with-tcp-socket-healthcheck
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: redis
|
||||||
|
image: redis
|
||||||
|
# defines the health checking
|
||||||
|
livenessProbe:
|
||||||
|
# a TCP socket probe
|
||||||
|
tcpSocket:
|
||||||
|
port: 6379
|
||||||
|
# length of time to wait for a pod to initialize
|
||||||
|
# after pod startup, before applying health checking
|
||||||
|
initialDelaySeconds: 30
|
||||||
|
timeoutSeconds: 1
|
||||||
|
ports:
|
||||||
|
- containerPort: 6379
|
||||||
Loading…
Reference in New Issue