renheshi 发表于 2018-1-6 09:34:11

k8s 健康检查

  livenessProbe:
  exec:
  command:
  - /bin/sh
  - '-c'
  - /opt/app-root/src/check_conf.sh
  failureThreshold: 3            #探测失败阈值
  initialDelaySeconds: 10    #容器起来多久才开始探测
  periodSeconds: 10         #告诉kubelet每10秒探测一次
  successThreshold: 1       #探测失败后成功1次就认为是成功的
  timeoutSeconds: 3      #探测超过3秒则认为本次探测是失败的
  参考 https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/
页: [1]
查看完整版本: k8s 健康检查