apiVersion: v1
kind: Pod
metadata:
name: liveness-tcp
namespace: default
spec:
containers:
- name: liveness-tcp-container
image: httpd
imagePullPolicy: IfNotPresent
livenessProbe:
initialDelaySeconds: 5
timeoutSeconds: 10
tcpSocket:
port: 8080
periodSeconds: 3
Mirroring the default port should be 80, but deliberately yaml file written 8080, tcp detection fails, pod will restart operation is repeated know detects port 80