在Kubernetes集群上部署zuul代理

时间:2018-10-15 13:06:29

标签: docker kubernetes netflix-zuul kubectl kubelet

我在Linux上配置了一个Kubernetes集群。在此,我想配置zuul代理。为了部署zuul,我使用了来自docker hub的zuul docker镜像。但是在运行了这些zuul图像后,窗格状态显示为“ ImagePullBackOff”。我使用了2-3个存储库,但是它们都显示相同的状态。我正在使用“ kubectl create”或“ kubectl run”来安装和配置zuul代理。有人可以让我知道我们如何通过使用docker映像或任何其他方法在kubernetes集群上安装和配置zuul代理吗?

1 个答案:

答案 0 :(得分: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"

那是因为图像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