0
点赞
收藏
分享

微信扫一扫

yaml httpget检测文件是否存在

海牙秋天 2022-03-30 阅读 37

apiVersion: v1

kind: Pod

metadata:

  name: nginx-httpget-pod

  namespace: default

spec:

  containers:

   - name: nginx-httpget-container

     image: nginx

     imagePullPolicy: IfNotPresent

     ports:

      - name: http

        containerPort: 80

     livenessProbe:

        httpGet:                                                      

          port: http

          path: /index.html

        initialDelaySeconds: 1

        periodSeconds: 3


举报

相关推荐

0 条评论