VxRail: Polecenia kubectl return: Musisz być zalogowany do nieautoryzowanego serwera
Summary: Polecenia kubectl VxRail Manager zwracają: Musisz być zalogowany na serwerze (Nieautoryzowany) z powodu nieprawidłowych danych kubeconfig.
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
Podczas uruchamiania dowolnych poleceń kubectl w programie VxRail Manager widoczne są następujące dane wyjściowe:
error: You must be logged in to the server (Unauthorized)

Nie jest to widoczne podczas ładowania kubeconfig z pliku rke2 YAML: /etc/rancher/rke2/rke2.yaml
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helium get nodes

Ten błąd jest również widoczny podczas uruchamiania opcji remove node w skrypcie 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
Usługa RKE2 działa od ponad 1 roku $HOME/.kube/config wygasł.
Resolution
W przypadku wystąpienia tego problemu skontaktuj się z pomocą techniczną firmy Dell i podaj ten artykuł bazy wiedzy w celach informacyjnych.
Affected Products
VxRail Appliance Family, VxRail Appliance SeriesArticle 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.