我在Linux上配置了一个Kubernetes集群。在此,我想配置zuul代理。为了部署zuul,我使用了来自docker hub的zuul docker镜像。但是在运行了这些zuul图像后, Pane 状态显示为“ImagePullBackOff”。我使用了2-3个存储库,但是它们都显示相同的状态。我正在使用“kubectl create”或“kubectl run”来安装和配置zuul代理。有人可以让我知道如何使用docker镜像或任何其他方法在kubernetes集群上安装和配置zuul代理吗?
最佳答案
似乎您正在尝试获取netflixoss/zuul图像,即netflixoss/zuul:latest
,但出现以下错误:
Warning Failed 15s kubelet, minikube Failed to pull image "netflixoss/zuul": rpc error: code = Unknown desc = Error response from daemon: manifest for netflixoss/zuul:latest not found
Warning Failed 15s kubelet, minikube Error: ErrImagePull
Normal BackOff 14s kubelet, minikube Back-off pulling image "netflixoss/zuul"
Warning Failed 14s kubelet, minikube Error: ImagePullBackOff
Normal Pulling 0s (x2 over 18s) kubelet, minikube pulling image "netflixoss/zuul"
这是因为图像
netflixoss/zuul
仅提供一个版本1.0.28。该图像没有默认的latest
版本。因此,您需要在kubernetes集群上部署
netflixoss/zuul:1.0.28
镜像:kubectl run --image netflixoss/zuul:1.0.28 zuul
它已成功拉出:
Normal Pulling 21m kubelet, minikube pulling image "netflixoss/zuul:1.0.28"
Normal Pulled 10m kubelet, minikube Successfully pulled image "netflixoss/zuul:1.0.28"
Normal Created 10m kubelet, minikube Created container
Normal Started 10m kubelet, minikube Started container
关于docker - 在Kubernetes集群上部署zuul代理,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/52817506/