K8Sの研究ノート - サバイバルモード検出-httpget

apiVersion: v1
kind: Pod
metadata:
  name: liveness-httpget
  namespace: default

spec:
  containers:
  - name: liveness-httpget-container
    image: httpd
    imagePullPolicy: IfNotPresent
    ports:
    - name: http
      containerPort: 80

    livenessProbe:
      httpGet:
        port: http
        path: /index.html
      initialDelaySeconds: 1
      periodSeconds: 3
      timeoutSeconds: 10

ファイルの存在を検出する/index.htmlが再起動ポッドには、その後、通常はありません

K8Sの研究ノート - サバイバルモード検出-httpget

おすすめ

転載: blog.51cto.com/11954248/2477634