![](/img/trans.png)
[英]Python speech Client error: Rendezvous of RPC that terminated with (StatusCode.DEADLINE_EXCEEDED)
[英]Failed to pull image "docker4nitin/tg_bot:v2": rpc error: code = Unknown desc = context deadline exceeded
我創建了一個圖像“docker4nitin/tg_bot:v2”並推入了 dockerhub。 我已經創建了一個 k8 部署文件來部署它,但它無法拉取圖像。 這是 deployment.yml 文件
deployment.yml 文件請修復此問題。 我真的厭倦了尋找解決方案,但沒有找到任何解決方案。
我想部署在K8
你的形象一切都很好。 我剛剛通過創建以下部署對其進行了測試,kube.netes 將其拉得很好。
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-deployment
spec:
selector:
matchLabels:
app: test
replicas: 1 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: test
spec:
containers:
- name: tgbot
image: docker4nitin/tg_bot:v2
ports:
- containerPort: 80
以下是我將其拉到最后時發生的事件。
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 4m1s bin-packing-scheduler Successfully assigned default/test-deployment-6bf6bbbfb5-mlrgp to ip-10-250-0-97.eu-central-1.compute.internal
Normal Pulling 4m1s kubelet Pulling image "docker4nitin/tg_bot:v2"
Normal Pulled 3m43s kubelet Successfully pulled image "docker4nitin/tg_bot:v2" in 17.153014569s
Normal Created 2m8s (x5 over 3m42s) kubelet Created container tgbot
Normal Started 2m8s (x5 over 3m41s) kubelet Started container tgbot
Normal Pulled 2m8s (x4 over 3m40s) kubelet Container image "docker4nitin/tg_bot:v2" already present on machine
Warning BackOff 2m7s (x9 over 3m39s) kubelet Back-off restarting failed container
如果你注意的話,image pull 工作正常,但是你的容器本身有問題導致容器退避。 也許在這里發布具體錯誤更有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.