VMware Modern Apps Community
vnadkarni
Contributor
Contributor

Tanzu CLI not connecting (Error: current server not found in tanzu config)

Can someone help me out with this Tanzu CLI error?

I used Tanzu Community Edition to create a K8s cluster on my home lab (single host Intel Nuc + ESXI + VCenter). I used:
  tanzu standalone-cluster create --ui
to start the web UI through which I configured the standalone k8s cluster with a new cluster name.

Then, when I try to see or scale my k8s cluster, all tanzu commands always return an error: 
  Error: current server "" not found in tanzu config

One other observation:
  tanzu config server list returns an empty table

(I know creating the k8s cluster was successful. I obtained the k8s context into my ~/.kube/config file. Then I ran
  kubectl get nodes to confirm that the nodes were up. This is the only k8s cluster it can access so I know it was successful.)

Reply
0 Kudos
3 Replies
stmcginnis
Contributor
Contributor

Some responses in the Reddit post here: https://www.reddit.com/r/Tanzu/comments/rwnv4h/errors_from_tanzu_cli/

As an open source project, there isn't much attention on communities.vmware.com for questions related to Tanzu Community Edition. Please join us on Slack or GitHub if you need anything.

Thanks for trying out TCE!

CHogan
VMware Employee
VMware Employee

You probably just need a "tanzu login" and then to select the cluster that you just created.

http://cormachogan.com
Reply
0 Kudos
aniijonn
Contributor
Contributor

I think there are the many ways to fixing this errors or bugs sometime you have to put up the right option of it. Then it will helps to sort up the issue 

Reply
0 Kudos