【问题标题】:How to find deployment failure cause? error: deployment "sample-app" exceeded its progress deadline如何查找部署失败原因?错误:部署“sample-app”超过了进度期限
【发布时间】:2022-06-29 11:45:33
【问题描述】:

我尝试了 Gitops 书中的简单示例

apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-app
spec:
  replicas: 1
  revisionHistoryLimit: 3
  selector:
    matchLabels:
      app: sample-app
  template:
    metadata:
      labels:
        app: sample-app
    spec:
      containers:
      - command:
        - /app/sample-app
        image: gitopsbook/sample-app:latest
        name: sample-app
        ports:
        - containerPort: 8080

没有用

NAME                         READY   UP-TO-DATE   AVAILABLE   AGE   CONTAINERS   IMAGES                         SELECTOR
deployment.apps/sample-app   0/1     1            0           90m   sample-app   gitopsbook/sample-app:latest   app=sample-app

推出节目

kubectl rollout status deployment sample-app
error: deployment "sample-app" exceeded its progress deadline

可能是它无法提取图像。还有什么问题?

【问题讨论】:

    标签: kubernetes kubectl


    【解决方案1】:

    是的,这是图像问题。

    kubectl get events 
    
    14m         Normal    BackOff   pod/sample-app-669c6df788-mbhlx   Back-off pulling image "gitopsbook/sample-app:latest"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-06
      • 2018-07-24
      • 2019-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多