0

我一直在尝试在我的开发环境中评估 Istio,但到目前为止我还无法运行 bookinfo 应用程序。我下载了 istio 版本 0.7.1 并安装它没有任何问题。

为了验证安装是否正常,我运行了命令watch kubectl get pod --all-namespaces,输出显示所有 pod 都运行良好。

Every 2.0s: kubectl get pod --all-namespaces                              ubuntu: Tue Apr 24 04:21:00 2018

NAMESPACE      NAME                                    READY     STATUS    RESTARTS   AGE
istio-system   grafana-7b8f9b9b4f-7cd4r                1/1       Running   0          1h
istio-system   istio-ca-75fb7dc8d5-mhrd5               1/1       Running   0          1h
istio-system   istio-ingress-8546966f58-m4zt6          1/1       Running   0          1h
istio-system   istio-mixer-566f68f5d6-rj8dd            3/3       Running   0          1h
istio-system   istio-pilot-fd8fb6957-xfkkr             2/2       Running   0          1h
istio-system   prometheus-6c54fc5cf-pjjdn              1/1       Running   0          1h
istio-system   servicegraph-64567d6467-hq8gn           1/1       Running   0          50m
istio-system   zipkin-78d44687f9-jhr6b                 1/1       Running   0          50m
kube-system    etcd-minikube                           1/1       Running   0          2h
kube-system    kube-addon-manager-minikube             1/1       Running   0          2h
kube-system    kube-apiserver-minikube                 1/1       Running   0          2h
kube-system    kube-controller-manager-minikube        1/1       Running   0          2h
kube-system    kube-dns-86f4d74b45-dlmbk               3/3       Running   0          2h
kube-system    kube-proxy-98kl7                        1/1       Running   0          2h
kube-system    kube-scheduler-minikube                 1/1       Running   0          2h
kube-system    kubernetes-dashboard-5498ccf677-5bvdh   1/1       Running   0          2h
kube-system    storage-provisioner                     1/1       Running   0          2h

然后,我运行命令kubectl create -f <(istioctl kube-inject -f samples/bookinfo/kube/bookinfo.yaml)来部署 bookinfo 应用程序。但是,执行此命令后,对 minikube 的任何请求都会失败并出现超时错误,例如:

watch kubectl get pod --all-namespaces

Error from server (Timeout): the server was unable to return a response in the time allotted, but may stil
l be processing the request (get pods)

另外,我无法访问 minikube 仪表板,出现 500 错误。

你以前见过这个错误吗?我该如何调试这个问题?

我的开发环境是:

Node: Ubuntu 17.10 VM (To be clear my laptop is running Windows and I have a VM with Ubuntu with : 8Gb of RAM, 4 Processors and 80Gb of disk)
Istio : version 0.7.1
kubectl version
Client Version: 
        version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-12T14:26:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
4

1 回答 1

1

minikube 的默认内存是 2GB,bookinfo 需要更大的值。尝试使用以下命令启动 minikube:

minikube start --memory 4096
于 2018-07-04T10:43:31.723 回答