VxRail: Os comandos kubectl retornam: Você deve estar conectado ao servidor não autorizado
Summary: Os comandos kubectl do VxRail Manager retornam: Você deve estar conectado ao servidor (não autorizado) devido a dados kubeconfig incorretos.
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
A saída a seguir é vista ao executar quaisquer comandos kubectl no VxRail Manager:
error: You must be logged in to the server (Unauthorized)

Isso não é visto ao carregar o kubeconfig do arquivo YAML rke2: /etc/rancher/rke2/rke2.yaml
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helium get nodes

Esse erro também é visto ao executar a opção remove node no script 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
O serviço RKE2 está em execução há mais de 1 ano $HOME/.kube/config expirou.
Resolution
Se você identificar esse problema, entre em contato com o Suporte Dell para obter assistência e forneça este artigo da base de conhecimento para referência.
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.