Kubernetes de podlar pending de kalıyor. Unauthorized

merhaba,

1 sene önce kurmuş olduğum clusterımda uygulamalarıma yeni versiyon geçemez oldum. mevcut container lar ayakta sorun yok fakat güncelleme göndemiyorum.
clusterımda test için, bitr nginx pod’u oluştayım dedim. bu podda pending de kalıyor. sistem kaynakları normal.
Bu sorun şu şekilde başladı, kubectl get pod komuıtunu verdiğimde bu hatayı aldım. Unable to connect to the server: x509: certificate has expired or is not yet valid: current time
bu hatayı internette arattığımda, kubeadm certs renew all komutu ile bu sorunu çözdüm. fakat şuanda cluster’a yeni bir container oluşturamıyorum.
/var/log/pods/kube-system_kube-scheduler-saasubnktm01_9934ec3840020a507a0866ae2d5607cb/kube-scheduler dizininde logları incelediğimde ise aşağıdaki gibi loglar görüyorum.
yardımcı olabilirseniz çok sevirim kaç gündür bu hataya bakıyorum.

hata:
2024-05-07T20:42:58.366762723+03:00 stderr F E0507 17:42:58.366629 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StorageClass: failed to list *v1.StorageClass: Unauthorized
2024-05-07T20:43:04.259566388+03:00 stderr F W0507 17:43:04.259345 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:43:04.259604851+03:00 stderr F E0507 17:43:04.259413 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSINode: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:43:04.666652048+03:00 stderr F W0507 17:43:04.666432 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:43:04.666698241+03:00 stderr F E0507 17:43:04.666485 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StatefulSet: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:43:04.761230038+03:00 stderr F W0507 17:43:04.761046 1 reflector.go:424] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:43:04.7612652+03:00 stderr F E0507 17:43:04.761109 1 reflector.go:140] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:43:05.069170154+03:00 stderr F W0507 17:43:05.069009 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSIStorageCapacity: Unauthorized
2024-05-07T20:43:05.06921811+03:00 stderr F E0507 17:43:05.069065 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSIStorageCapacity: failed to list *v1.CSIStorageCapacity: Unauthorized
2024-05-07T20:43:07.692326105+03:00 stderr F W0507 17:43:07.692171 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Service: Unauthorized
2024-05-07T20:43:07.692361116+03:00 stderr F E0507 17:43:07.692251 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Service: failed to list *v1.Service: Unauthorized
2024-05-07T20:43:09.56994167+03:00 stderr F W0507 17:43:09.569698 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:43:09.569984568+03:00 stderr F E0507 17:43:09.569741 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.ReplicaSet: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:43:10.045726774+03:00 stderr F W0507 17:43:10.045572 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:43:10.045761344+03:00 stderr F E0507 17:43:10.045635 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PodDisruptionBudget: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:43:11.622371897+03:00 stderr F W0507 17:43:11.622153 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PersistentVolumeClaim: Unauthorized
2024-05-07T20:43:11.622409998+03:00 stderr F E0507 17:43:11.622274 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PersistentVolumeClaim: failed to list *v1.PersistentVolumeClaim: Unauthorized
2024-05-07T20:43:14.431793524+03:00 stderr F W0507 17:43:14.431646 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSIDriver: Unauthorized
2024-05-07T20:43:14.431836561+03:00 stderr F E0507 17:43:14.431706 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: Unauthorized
2024-05-07T20:43:19.350024836+03:00 stderr F W0507 17:43:19.349887 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PersistentVolume: Unauthorized
2024-05-07T20:43:19.350063554+03:00 stderr F E0507 17:43:19.349926 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PersistentVolume: failed to list *v1.PersistentVolume: Unauthorized
2024-05-07T20:43:21.161930261+03:00 stderr F W0507 17:43:21.161784 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Pod: Unauthorized
2024-05-07T20:43:21.161959633+03:00 stderr F E0507 17:43:21.161835 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Pod: failed to list *v1.Pod: Unauthorized
2024-05-07T20:43:24.272889264+03:00 stderr F W0507 17:43:24.272732 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Namespace: Unauthorized
2024-05-07T20:43:24.272935914+03:00 stderr F E0507 17:43:24.272777 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Namespace: failed to list *v1.Namespace: Unauthorized
2024-05-07T20:43:27.11774826+03:00 stderr F W0507 17:43:27.117579 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.ReplicationController: Unauthorized
2024-05-07T20:43:27.117786448+03:00 stderr F E0507 17:43:27.117653 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.ReplicationController: failed to list *v1.ReplicationController: Unauthorized
2024-05-07T20:43:29.38091192+03:00 stderr F W0507 17:43:29.380729 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Node: Unauthorized
2024-05-07T20:43:29.380944465+03:00 stderr F E0507 17:43:29.380772 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Node: failed to list *v1.Node: Unauthorized
2024-05-07T20:43:30.226720629+03:00 stderr F W0507 17:43:30.226609 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.StorageClass: Unauthorized
2024-05-07T20:43:30.226749187+03:00 stderr F E0507 17:43:30.226656 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StorageClass: failed to list *v1.StorageClass: Unauthorized
2024-05-07T20:43:37.125714826+03:00 stderr F W0507 17:43:37.125545 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:43:37.125760199+03:00 stderr F E0507 17:43:37.125588 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSINode: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:43:43.062295367+03:00 stderr F W0507 17:43:43.062079 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:43:43.062334447+03:00 stderr F E0507 17:43:43.062124 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.ReplicaSet: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:43:47.109701926+03:00 stderr F W0507 17:43:47.109568 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:43:47.109734651+03:00 stderr F E0507 17:43:47.109632 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StatefulSet: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:43:56.090793746+03:00 stderr F W0507 17:43:56.090647 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:43:56.090851839+03:00 stderr F E0507 17:43:56.090735 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PodDisruptionBudget: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:43:58.74085635+03:00 stderr F W0507 17:43:58.740746 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Service: Unauthorized
2024-05-07T20:43:58.740973699+03:00 stderr F E0507 17:43:58.740895 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Service: failed to list *v1.Service: Unauthorized
2024-05-07T20:43:59.035522032+03:00 stderr F W0507 17:43:59.034767 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSIStorageCapacity: Unauthorized
2024-05-07T20:43:59.035559495+03:00 stderr F E0507 17:43:59.034809 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSIStorageCapacity: failed to list *v1.CSIStorageCapacity: Unauthorized
2024-05-07T20:44:01.340149768+03:00 stderr F W0507 17:44:01.339997 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSIDriver: Unauthorized
2024-05-07T20:44:01.340197579+03:00 stderr F E0507 17:44:01.340040 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: Unauthorized
2024-05-07T20:44:02.559181754+03:00 stderr F W0507 17:44:02.559015 1 reflector.go:424] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:44:02.559257035+03:00 stderr F E0507 17:44:02.559115 1 reflector.go:140] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:44:06.394525083+03:00 stderr F W0507 17:44:06.394327 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PersistentVolumeClaim: Unauthorized
2024-05-07T20:44:06.394567543+03:00 stderr F E0507 17:44:06.394369 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PersistentVolumeClaim: failed to list *v1.PersistentVolumeClaim: Unauthorized
2024-05-07T20:44:12.026552576+03:00 stderr F W0507 17:44:12.026356 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Pod: Unauthorized
2024-05-07T20:44:12.026593815+03:00 stderr F E0507 17:44:12.026411 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Pod: failed to list *v1.Pod: Unauthorized
2024-05-07T20:44:13.268906646+03:00 stderr F W0507 17:44:13.268737 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Node: Unauthorized
2024-05-07T20:44:13.268944893+03:00 stderr F E0507 17:44:13.268790 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Node: failed to list *v1.Node: Unauthorized
2024-05-07T20:44:14.154171248+03:00 stderr F W0507 17:44:14.154016 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PersistentVolume: Unauthorized
2024-05-07T20:44:14.154224767+03:00 stderr F E0507 17:44:14.154070 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PersistentVolume: failed to list *v1.PersistentVolume: Unauthorized
2024-05-07T20:44:16.413596782+03:00 stderr F W0507 17:44:16.413343 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.StorageClass: Unauthorized
2024-05-07T20:44:16.413634539+03:00 stderr F E0507 17:44:16.413393 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StorageClass: failed to list *v1.StorageClass: Unauthorized
2024-05-07T20:44:20.950250541+03:00 stderr F W0507 17:44:20.950111 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:44:20.950306047+03:00 stderr F E0507 17:44:20.950160 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSINode: failed to list *v1.CSINode: Unauthorized
2024-05-07T20:44:21.579985132+03:00 stderr F W0507 17:44:21.578809 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.ReplicationController: Unauthorized
2024-05-07T20:44:21.58003042+03:00 stderr F E0507 17:44:21.578859 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.ReplicationController: failed to list *v1.ReplicationController: Unauthorized
2024-05-07T20:44:23.192260536+03:00 stderr F W0507 17:44:23.192127 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Namespace: Unauthorized
2024-05-07T20:44:23.192325211+03:00 stderr F E0507 17:44:23.192172 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Namespace: failed to list *v1.Namespace: Unauthorized
2024-05-07T20:44:32.543888549+03:00 stderr F W0507 17:44:32.543568 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:44:32.543925427+03:00 stderr F E0507 17:44:32.543614 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.StatefulSet: failed to list *v1.StatefulSet: Unauthorized
2024-05-07T20:44:32.810448274+03:00 stderr F W0507 17:44:32.810256 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:44:32.810506462+03:00 stderr F E0507 17:44:32.810348 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.PodDisruptionBudget: failed to list *v1.PodDisruptionBudget: Unauthorized
2024-05-07T20:44:34.742187883+03:00 stderr F W0507 17:44:34.742017 1 reflector.go:424] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:44:34.742230715+03:00 stderr F E0507 17:44:34.742062 1 reflector.go:140] pkg/server/dynamiccertificates/configmap_cafile_content.go:206: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: Unauthorized
2024-05-07T20:44:34.903385375+03:00 stderr F W0507 17:44:34.903225 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.Service: Unauthorized
2024-05-07T20:44:34.903435024+03:00 stderr F E0507 17:44:34.903269 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.Service: failed to list *v1.Service: Unauthorized
2024-05-07T20:44:38.056387007+03:00 stderr F W0507 17:44:38.056242 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:44:38.056417302+03:00 stderr F E0507 17:44:38.056285 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.ReplicaSet: failed to list *v1.ReplicaSet: Unauthorized
2024-05-07T20:44:43.700509996+03:00 stderr F W0507 17:44:43.700366 1 reflector.go:424] vendor/k8s.io/client-go/informers/factory.go:150: failed to list *v1.CSIDriver: Unauthorized
2024-05-07T20:44:43.70055597+03:00 stderr F E0507 17:44:43.700406 1 reflector.go:140] vendor/k8s.io/client-go/informers/factory.go:150: Failed to watch *v1.CSIDriver: failed to list *v1.CSIDriver: Unauthorized

bu kaynak ile çözüm üretildi