VxRail: Kubectl komutları şunu döndürür: Sunucuda Yetkisiz Oturum Açmış Olmanız Gerekir

Summary: VxRail Manager kubectl komutları şunu döndürür: Yanlış kubeconfig verileri nedeniyle sunucuda oturum açmış olmanız gerekir (Yetkisiz).

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

VxRail Manager'da herhangi bir kubectl komutu çalıştırıldığında aşağıdaki çıktı görülür:

error: You must be logged in to the server (Unauthorized)

hatasına neden olur: Sunucuda oturum açmış olmalısınız (Yetkisiz)
rke2 YAML dosyasından kubeconfig yüklenirken bu durum görülmez: /etc/rancher/rke2/rke2.yaml

kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helium get nodes

kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helyum get nodes
 

Bu hata, komut dosyasında düğümü kaldır seçeneği çalıştırılırken de görülür dell_node_replacement.py:

Failed to clean redis!\error: You must be logged in to the server (Unauthorized)
error: pod, type/name or --filename must be specified 

Cause

RKE2 hizmeti 1 yılı aşkın süredir çalışıyor $HOME/.kube/config süresi doldu.

Resolution

Bu sorunla karşılaşırsanız yardım için Dell desteğine başvurun ve referans olması için bu KB yi sağlayın. 

Affected Products

VxRail Appliance Family, VxRail Appliance Series
Article Properties
Article Number: 000212809
Article Type: Solution
Last Modified: 08 Apr 2025
Version:  6
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.