我正在尝试在minikube集群中安装istio
我遵循了这个页面上的教程https://istio.io/docs/setup/kubernetes/quick-start/
我可以看到服务已经创建,但是部署似乎失败了。
kubectl get pods -n istio-system
No resources found如何对此进行故障排除?
以下是get部署的结果
kubectl get deployment -n istio-system
NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGE
grafana 1 0 0 0 4m
istio-citadel 1 0 0 0 4m
istio-egressgateway 1 0 0 0 4m
istio-galley 1 0 0 0 4m
istio-ingressgateway 1 0 0 0 4m
istio-pilot 1 0 0 0 4m
istio-policy 1 0 0 0 4m
istio-sidecar-injector 1 0 0 0 4m
istio-telemetry 1 0 0 0 4m
istio-tracing 1 0 0 0 4m
prometheus 1 0 0 0 4m
servicegraph 1 0 0 0 4m发布于 2018-11-27 20:44:27
这就是对我有效的方法。不要在启动minikube时使用--extra-config%s。这是崩溃的kube-controller-manager-minikube,因为它不能找到文件
启动控制器时出错:无法启动证书控制器:读取CA证书文件“/var/lib/localkube/certs/ca.crt”时出错: open /var/lib/localkube/certs/ca.crt:没有这样的文件或目录
只需使用以下命令启动minikube。我有minikube V0.30.0。
minikube start输出:
Starting local Kubernetes v1.10.0 cluster...
Starting VM...
Downloading Minikube ISO
170.78 MB / 170.78 MB [============================================] 100.00% 0s
Getting VM IP address...
Moving files into cluster...
Downloading kubelet v1.10.0
Downloading kubeadm v1.10.0
Finished Downloading kubeadm v1.10.0
Finished Downloading kubelet v1.10.0
Setting up certs...
Connecting to cluster...
Setting up kubeconfig...
Starting cluster components...
Kubectl is now configured to use the cluster.
Loading cached images from config file.指向istio-1.0.4 folder,运行以下命令
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml这应该会安装所有需要的crds
运行此命令
kubectl apply -f install/kubernetes/istio-demo.yaml成功创建规则、服务、部署等后,运行以下命令
kubectl get pods -n istio-system
NAME READY STATUS RESTARTS AGE
grafana-9cfc9d4c9-h2zn8 1/1 Running 0 5m
istio-citadel-74df865579-d2pbq 1/1 Running 0 5m
istio-cleanup-secrets-ghlbf 0/1 Completed 0 5m
istio-egressgateway-58df7c4d8-4tg4p 1/1 Running 0 5m
istio-galley-8487989b9b-jbp2d 1/1 Running 0 5m
istio-grafana-post-install-dn6bw 0/1 Completed 0 5m
istio-ingressgateway-6fc88db97f-49z88 1/1 Running 0 5m
istio-pilot-74bb7dcdd-xjgvz 0/2 Pending 0 5m
istio-policy-58878f57fb-t6fqt 2/2 Running 0 5m
istio-security-post-install-vqbzw 0/1 Completed 0 5m
istio-sidecar-injector-5cfcf6dd86-lr8ll 1/1 Running 0 5m
istio-telemetry-bf5558589-8hzcc 2/2 Running 0 5m
istio-tracing-ff94688bb-bwzfs 1/1 Running 0 5m
prometheus-f556886b8-9z6vp 1/1 Running 0 5m
servicegraph-55d57f69f5-fvqbg 1/1 Running 0 5m发布于 2018-12-24 03:08:22
还可以尝试自定义安装via Helm template。您不需要为此部署Tiller。
1) kubectl应用-f install/kubernetes/helm/istio/templates/crds.yaml
2) helm模板安装/kubernetes/helm/ istio --名称istio--命名空间istio--设置grafana.enabled=true --设置servicegraph.enabled=true --设置tracing.enabled=true --设置kiali.enabled=true --设置sidecarInjectorWebhook.enabled=true --设置global.tag=1.0.5 > $HOME/istio.yaml
3) kubectl创建命名空间istio-system
4) kubectl应用-f $HOME/istio.yaml
https://stackoverflow.com/questions/53485758
复制相似问题