You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to upgrade Kubernetes and KubeSphere using KubeKey, the following error is returned:
get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
When I run sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'" myself, the version number is returned correctly.
Relevant log output
13:17:44 CEST [ClusterPreCheckModule] Check KubeSphere version
13:17:44 CEST message: [k8smaster01]
get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
13:17:44 CEST retry: [k8smaster01]
13:17:49 CEST message: [k8smaster01]
get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
13:17:49 CEST retry: [k8smaster01]
13:17:54 CEST message: [k8smaster01]
get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
13:17:54 CEST failed: [k8smaster01]
error: Pipeline[UpgradeClusterPipeline] execute failed: Module[ClusterPreCheckModule] exec failed:
failed: [k8smaster01] [KsVersionCheck] exec failed after 3 retries: get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
Additional information
No response
The text was updated successfully, but these errors were encountered:
What is version of KubeKey has the issue?
v3.0.13
What is your os environment?
Ubuntu 22.04
KubeKey config file
No response
A clear and concise description of what happend.
When I try to upgrade Kubernetes and KubeSphere using KubeKey, the following error is returned:
get kubeSphere version failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'"
error: You must be logged in to the server (Unauthorized): Process exited with status 1
When I run sudo -E /bin/bash -c "/usr/local/bin/kubectl get deploy -n kubesphere-system ks-console -o jsonpath='{.metadata.labels.version}'" myself, the version number is returned correctly.
Relevant log output
Additional information
No response
The text was updated successfully, but these errors were encountered: