我試圖在ubutnu上安裝kubernetes(裸機安裝)。 我安裝了一個主節點和一個節點,看起來很好。 我安裝了ui插件時沒有問題,但是當我嘗試安裝dns插件時,pod不斷重啓。無法啓動skydns
在KUBE-API服務器日誌我得到:
E1218 12:56:15.298118 5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
I1218 12:56:15.298220 5 handlers.go:131] GET /api/v1/services: (534.467µs) 401 [[kube2sky/v0.20.2 (linux/amd64) kubernetes/unknown] 172.27.35.39:33013]
E1218 12:56:15.298396 5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
I1218 12:56:15.298469 5 handlers.go:131] GET /api/v1/endpoints: (493.5µs) 401 [[kube2sky/v0.20.2 (linux/amd64) kubernetes/unknown] 172.27.35.39:33014]
I1218 12:56:16.001321 5 handlers.go:131] GET /healthz: (83.326µs) 0 [[Go 1.1 package http] 127.0.0.1:42096]
E1218 12:56:16.303274 5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
E1218 12:56:16.303274 5 handlers.go:37] Unable to authenticate the request due to an error: crypto/rsa: verification error
而在kube2sky容器登錄我收到以下錯誤:
E1218 12:57:51.713651 1 reflector.go:136] Failed to list *api.Service: the server has asked for the client to provide credentials (get services)
E1218 12:57:51.713850 1 reflector.go:136] Failed to list *api.Endpoints: the server has asked for the client to provide credentials (get endpoints)
我看來像我有服務帳戶和一個問題令牌,但是我查看了kube2sky實例,並且看到我在/tmp/secrets/kubernetes.io/serviceaccount目錄中有一個令牌,並且ca.crt是羣集的正確的CA
我使用: 的Ubuntu 14.04 kubernetes 1.1.2 加我嘗試從kubernetes 1.1.2
我已經安裝了kubernetes你有完全相同相同。請檢查kube2sky容器中的mountPath。我正在使用volumeMounts for token,如下所示。 「volumeMounts」:[{ 「名稱」: 「默認令牌npk63」, 「readOnly的」:真, 「裝載路徑」: 「/var/run/secrets/kubernetes.io/serviceaccount」 } ] , – jeon