阅读背景:

Kubernetes(八)——存活性探测实战

来源:互联网 
存活探针案例

EXEC探针

apiVersion: v1 kind: Pod metadata: labels: test: liveness name: liveness-exec spec: containers: - name: liveness image: busybox args: - /bin/sh - -c - touch /tmp/healthy; sleep 30; rm -rf /tmp/healthy; sleep 600 livenessProbe: exec: command: - cat - /tmp/healthy initialDelaySeconds: 5 periodSeconds: 5 apiVersion: v1 kind: Pod metadata:



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: