如何查找部署失败原因?错误:部署"sample-app"超过其进度截止时间



我从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

可能是无法拉出图像。还有什么可能出错?

是的,这是图像问题。

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

相关内容

  • 没有找到相关文章

最新更新