3

我在 Linux 上配置了一个 Kubernetes 集群。对此,我想配置zuul代理。为了部署 zuul,我使用来自 docker hub 的 zuul docker 镜像。但运行这些 zuul 镜像后,pod 状态显示为“ImagePullBackOff”。我使用了 2-3 个存储库,但都显示相同的状态。我正在使用“kubectl create”或“kubectl run”来安装和配置 zuul 代理。谁能告诉我如何使用 docker 镜像或任何其他方法在 kubernetes 集群上安装和配置 zuul 代理?

4

1 回答 1

0

看来您正在尝试获取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"

那是因为只有一个版本1.0.28可用于 image netflixoss/zuul。图像没有默认latest版本。

所以,你需要netflixoss/zuul:1.0.28在你的 Kubernetes 集群上部署镜像:

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
于 2018-10-15T20:51:20.367 回答