VxRail:Kubectl 命令傳回:您必須登入伺服器未授權

Summary: VxRail Manager kubectl 命令傳回:由於 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

在 VxRail Manager 上執行任何 kubectl 命令時,會看到下列輸出:

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

錯誤:您必須登入伺服器 (未授權)
從 rke2 YAML 檔案載入 kubeconfig 時,不會看到這種情況:/etc/rancher/rke2/rke2.yaml

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

kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n 氦氣 get 節點
 

在指令檔 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 服務已執行超過 1 年 $HOME/.kube/config 已過期。

Resolution

如果您遇到此問題,請聯絡 Dell 支援 以取得協助,並提供此 KB 以供參考。 

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.