VxRail: Kubectl Commands Return: U moet ongeoorloofd zijn ingelogd op de server

Summary: VxRail Manager kubectl opdrachten retourneren: U moet zijn aangemeld bij de server (Niet geautoriseerd) vanwege onjuiste kubeconfig-data.

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

De volgende uitvoer wordt weergegeven bij het uitvoeren van kubectl-opdrachten op VxRail Manager:

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

fout: U moet ingelogd zijn op de server (Niet geautoriseerd)
Dit wordt niet gezien bij het laden van de kubeconfig vanuit het rke2 YAML-bestand: /etc/rancher/rke2/rke2.yaml

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

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

Deze fout wordt ook weergegeven bij het uitvoeren van de optie knooppunt verwijderen in het 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

RKE2-service loopt al meer dan 1 jaar de $HOME/.kube/config is verlopen.

Resolution

Als u dit probleem tegenkomt, neemt u contact op met Dell Support voor hulp en verstrekt u deze KB ter referentie. 

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.