Ubutnu'ya (çıplak metal yükleme) kubernetes yüklemeye çalışıyorum. Bir ana ve bir düğüm yükledim ve iyi görünüyor. Ui addon'u sorunsuz bir şekilde yükledim, ancak dns'i yüklemeye çalıştığımda pod'u yeniden başlatın.Skydns başlatılamıyor
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
Ve kube2sky kapta ben aşağıdaki hataları almak log: kube-apiserver günlüklerinde
alıyorum ben hizmet hesabı ve bir sorun var gibi
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)
bana bakıyor ama ben kube2sky örneğine baktım ve /tmp/secrets/kubernetes.io/serviceaccount dizininde bir belirteç olduğunu ve ca.crt kümesinin
kümesinin doğru olduğunu görüyorum Ben kullanıyorum: ubuntu 14.04 Kubernetes 1.1.2 eklenti ben daha ziyade Kubernetes kendisi ile, ben skydns ile ihraç değil bulundu gibi Kubernetes 1.1.2
Ben yüklediniz:
Ben de daha iyi bir yaklaşım olup olmadığını bilmiyorum, bütün POD yeniden başlatmanız gerekiyor aynı. Lütfen kube2sky konteynerinde mountPath'i kontrol edin. Simge için aşağıdaki gibi volumeMount kullanıyorum. "VolumeMounts": [ { "isim", "varsayılan belirteç npk63", "salt okunur": doğru, "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount" } ] , – jeon