Tôi đang cố gắng cài đặt kubernetes trên ubutnu (cài đặt kim loại trần). Tôi cài đặt một nút chính và một nút và có vẻ ổn. Tôi đã cài đặt addon ui mà không gặp vấn đề gì nhưng khi tôi cố cài đặt dns addon, pod tự khởi động lại liên tục.Không thể khởi động skydns
trong nhật ký Kube-apiserver tôi nhận được:
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
Và trong container kube2sky đăng tôi nhận được các lỗi sau đây:
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)
vẻ với tôi như tôi có một vấn đề với tài khoản dịch vụ và mã thông báo nhưng tôi đã tìm trong cá thể kube2sky và tôi thấy rằng tôi có một mã thông báo trong thư mục /tmp/secrets/kubernetes.io/serviceaccount và ca.crt là cụm chính xác của cụm
Tôi đang sử dụng: ubuntu 14.04 kubernetes 1.1.2 add tôi cố gắng tạo ra các addon dns từ thư mục addon của kubernetes 1.1.2
Tôi đã cài đặt kubernetes bạn có chính xác tương tự. Vui lòng kiểm tra mountPath trong thùng chứa kube2sky. Tôi đang sử dụng volumeMounts cho mã thông báo như sau. "VolumeMounts": [{ "tên": "mặc định-token-npk63", "readonly": đúng, "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount" } ] , – jeon