VxRail: Kubectl Commands Return: You Must be Logged in to the Server Unauthorized
Summary: VxRail Manager kubectl commands return: You must be logged in to the server (Unauthorized) due to incorrect 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
The following output is seen when running any kubectl commands on VxRail Manager:
error: You must be logged in to the server (Unauthorized)

This is not seen when loading the kubeconfig from the rke2 YAML file: /etc/rancher/rke2/rke2.yaml
kubectl --kubeconfig /etc/rancher/rke2/rke2.yaml -n helium get nodes

This error is also seen when running the remove node option in the 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 has been running for over 1 year the $HOME/.kube/config is expired.
Resolution
If you encounter this issue, contact Dell support for assistance and provide this KB for reference.
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.