k8s study notes - survival mode detection -tcp

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
k8s study notes - survival mode detection -tcp
k8s study notes - survival mode detection -tcp

Guess you like

Origin blog.51cto.com/11954248/2477637