我一直试图设置ui,但经过多次尝试,我无法使其工作。我正在Raspberry Pi 2 using the Kubernetes on Arm project中安装kubernetes。
要启动kube-ui,请运行以下命令:
kubectl create -f addons/kube-ui/kube-ui-rc.yaml --namespace=kube-system
kubectl create -f addons/kube-ui/kube-ui-svc.yaml --namespace=kube-system
它开始纠正,但当我转到http://[master-ip]:8080/ui时,它会重定向到http://[master-ip]/api/v1/proxy/namespaces/kube-system/services/kube-ui/#/dashboard/。下一个json显示:
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "no endpoints available for service \"kube-ui\"",
"reason": "ServiceUnavailable",
"code": 503
}
然后我用:
检查了pod kube-ui的状态kubectl describe pods kube-ui --namespace=kube-system
事件是:
Events:
FirstSeen LastSeen Count From SubobjectPath Reason Message
───────── ──────── ───── ──── ───────────── ────── ───────
24m 24m 1 {kubelet 192.168.1.21} implicitly required container POD Pulled Container image "kubernetesonarm/pause" already present on machine
24m 24m 1 {kubelet 192.168.1.21} implicitly required container POD Created Created with docker id bb685cbaa294
24m 24m 1 {kubelet 192.168.1.21} implicitly required container POD Started Started with docker id bb685cbaa294
24m 24m 1 {scheduler } Scheduled Successfully assigned kube-ui-v3-k694w to 192.168.1.21
24m 14s 147 {kubelet 192.168.1.21} spec.containers{kube-ui} Pulling Pulling image "kubernetesonarm/kube-ui"
24m 10s 147 {kubelet 192.168.1.21} spec.containers{kube-ui} Failed Failed to pull image "kubernetesonarm/kube-ui": Error: image kubernetesonarm/kube-ui:latest not found
Master-ip = 192.168.1.20
Node-ip = 192.168.1.21
答案 0 :(得分:0)
事件流的最后一行显示问题:
Error: image kubernetesonarm/kube-ui:latest not found
https://hub.docker.com/u/kubernetesonarm/显示已为ARM编译的容器列表。
另请注意,kubernetes-on-arm文档说明了:
kube-ui被删除,因为Kubernetes团队将焦点转移到了 dashboard