![](/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.