VxRail: I comandi Kubectl restituiscono: È necessario aver effettuato l'accesso al server senza autorizzazione
Summary: I comandi kubectl di VxRail Manager restituiscono: È necessario aver effettuato l'accesso al server (non autorizzato) a causa di dati kubeconfig errati.
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
Quando si eseguono comandi kubectl su VxRail Manager, viene visualizzato il seguente output:
error: You must be logged in to the server (Unauthorized)

Questa condizione non viene visualizzata quando si carica kubeconfig dal file YAML rke2: /etc/rancher/rke2/rke2.yaml
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helium get nodes

Questo errore viene visualizzato anche quando si esegue l'opzione di rimozione del nodo nel dell_node_replacement.py di script:
Failed to clean redis!\error: You must be logged in to the server (Unauthorized)
error: pod, type/name or --filename must be specified Cause
Il servizio RKE2 è in esecuzione da oltre 1 anno $HOME/.kube/config è scaduto.
Resolution
Se si verifica questo problema, contattare il supporto Dell per assistenza e fornire questo articolo della KB come riferimento.
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.