cloudnativer / kube-install

一键安装k8s(kubernetes):二進位離線方式部署,支持定時安裝、添加與銷毀node、銷毀與修復master、一鍵卸載集羣等。Install k8s (kubernetes): one click offline installation of highly available multiple kubernetes cluster, supports schedule installation, addition of nodes, rebuild of kubernetes master, and uninstallation of clusters.
Apache License 2.0
422 stars 118 forks source link

secret "harbor-secret" not found in kubelet status log. #25

Open huangxuelun opened 2 years ago

huangxuelun commented 2 years ago

kube-install version: 0.7.4 k8s version: 1.23.0 OS: centOS 7.9 [root@master1 ~]# systemctl status kubelet -l ● kubelet.service - Kubernetes Kubelet Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled) Active: active (running) since 六 2021-12-18 20:25:32 EST; 39min ago Docs: https://github.com/GoogleCloudPlatform/kubernetes Process: 1942 ExecStartPre=/usr/local/bin/resolvinit.sh (code=exited, status=0/SUCCESS) Main PID: 1944 (kubelet) Tasks: 15 Memory: 166.1M CGroup: /system.slice/kubelet.service └─1944 /usr/local/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/ssl/bootstrap.kubeconfig --root-dir=/opt/kube-install/k8s/kubernetes/kubelet --network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin/ --cert-dir=/etc/kubernetes/ssl --kubeconfig=/etc/kubernetes/ssl/kubelet.kubeconfig --config=/etc/kubernetes/kubelet.config.json --hostname-override=192.168.5.80 --pod-infra-container-image=192.168.5.82:5000/pause-amd64:3.1 --alsologtostderr=true --logtostderr=false --root-dir=/opt/kube-install/k8s/kubernetes/kubelet --log-dir=/opt/kube-install/k8s/kubernetes/kubelet --v=2

12月 18 20:55:37 master1 kubelet[1944]: I1218 20:55:37.734862 1944 container_manager_linux.go:511] "Discovered runtime cgroup name" cgroupName="/system.slice/docker.service" 12月 18 20:55:40 master1 kubelet[1944]: I1218 20:55:40.576092 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 20:57:07 master1 kubelet[1944]: I1218 20:57:07.577009 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 20:58:31 master1 kubelet[1944]: I1218 20:58:31.580915 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 20:59:38 master1 kubelet[1944]: I1218 20:59:38.582701 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 21:00:37 master1 kubelet[1944]: I1218 21:00:37.736187 1944 container_manager_linux.go:511] "Discovered runtime cgroup name" cgroupName="/system.slice/docker.service" 12月 18 21:00:59 master1 kubelet[1944]: I1218 21:00:59.579739 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 21:02:03 master1 kubelet[1944]: I1218 21:02:03.576123 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 21:03:19 master1 kubelet[1944]: I1218 21:03:19.579010 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found" 12月 18 21:04:33 master1 kubelet[1944]: I1218 21:04:33.578235 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret \"harbor-secret\" not found"

houseonline commented 2 years ago

"harbor-secret" not found" 12月 18 21:04:33 master1 kubelet[1944]: I1218 21:04:33.578235 1944 kubelet_pods.go:891] "Unable to retrieve pull secret, the image pull may not succeed." pod="kube-system/kube-dashboard-6d9bd6b985-7pptf" secret="" err="secret "harbor-secret" not found"

In our kubernetes cluster, the "harbor-secret" is not necessary. This log can be ignored, and does not affect the normal use of kubernetes and kube-dashboard !

cloudnativer commented 2 years ago

Thank you for your feedback. We will remove the historical "harbor-secret" parameter in the next version. You can follow our roadmap: https://github.com/cloudnativer/kube-install/blob/master/docs/roadmap.md