在GCP Kubernetes上安装Istio-Istio deps失败

时间:2018-11-09 18:02:09

标签: kubernetes google-cloud-platform istio

我正在Google Cloud Platform上关注tutorial for Istio,并且能够启动并运行我的集群。我通过运行kubectl apply -f install/kubernetes/istio-demo-auth.yaml进入了启动演示应用程序的位置,但是不会出现很多吊舱。

我正在运行Istio 1.0.3

kubectl version --short
Client Version: v1.11.1
Server Version: v1.9.7-gke.6

当我运行命令kubectl get service -n istio-system 来验证istio pod已部署并且容器正在运行时,其中许多处于崩溃周期。关于如何调试的任何提示?

grafana-7b6d98d887-9dgdc                  1/1       Running             0          17h

istio-citadel-778747b96d-cw78t            1/1       Running             0          17h

istio-cleanup-secrets-2vjlf               0/1       Completed           0          17h

istio-egressgateway-7b8f4ccb6-rl69j       1/1       Running             123        17h

istio-galley-7557f8c985-jp975             0/1       ContainerCreating   0          17h

istio-grafana-post-install-n45x4          0/1       Error               202        17h

istio-ingressgateway-5f94fdc55f-dc2q5     1/1       Running             123        17h

istio-pilot-d6b56bf4d-czp9w               1/2       CrashLoopBackOff    328        17h

istio-policy-6c7d8454b-dpvfj              1/2       CrashLoopBackOff    500        17h

istio-security-post-install-qrzpq         0/1       CrashLoopBackOff    201        17h

istio-sidecar-injector-75cf59b857-z7wbc   0/1       ContainerCreating   0          17h

istio-telemetry-69db5c7575-4jp2d          1/2       CrashLoopBackOff    500        17h

istio-tracing-77f9f94b98-vjmhc            1/1       Running             0          17h

prometheus-67d4988588-gjmcp               1/1       Running             0          17h

servicegraph-57d8ff7686-x2r8r             1/1       Running             0          17h

3 个答案:

答案 0 :(得分:3)

看起来像kubectl -n istio-system get pods

的输出

提示,请检查以下内容的输出:

  • $ kubectl -n istio-system logs istio-pilot-d6b56bf4d-czp9w
  • $ kubectl -n istio-system logs istio-policy-6c7d8454b-dpvfj
  • $ kubectl -n istio-system logs istio-grafana-post-install-n45x4
  • $ kubectl -n istio-system logs istio-telemetry-69db5c7575-4jp2d
  • install/kubernetes/istio-demo-auth.yaml中检查您的pod崩溃的部署/服务/配置映射定义。

答案 1 :(得分:0)

尝试使用Helm via template安装。

您通常希望同时拥有Grafana,Zipkin和Kiali。这对我有用:

1)<b>

2)kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

3)helm template install/kubernetes/helm/istio --name istio --namespace istio-system --set grafana.enabled=true --set servicegraph.enabled=true --set tracing.enabled=true --set kiali.enabled=true --set sidecarInjectorWebhook.enabled=true --set global.tag=1.0.5 > $HOME/istio.yaml

4)kubectl create namespace istio-system

答案 2 :(得分:0)

我遇到了类似的问题-事实证明我的NAT网关配置不正确。我用来创建私有集群的Terraform创建了一个我需要删除的附加默认Internet网关。

有些出现了,有些没有出现-我认为也许某些图像已缓存在群集可以到达的位置,例如Google存储库。