Home > Blockchain >  Why my kube config does not work?Error: DatabaseAccountNotFoundError: Failed to find the account wit
Why my kube config does not work?Error: DatabaseAccountNotFoundError: Failed to find the account wit

Time:08-15

I created a cluster (Civo) enter image description here

downloaded config and added COPY paste to my ~.kube/config

kubectl config get-contexts

shows

CURRENT   NAME              CLUSTER           AUTHINFO          NAMESPACE
*         serverless-apps   serverless-apps   serverless-apps 

If I try civo cli

civo kubernetes ls
Error: DatabaseAccountNotFoundError: Failed to find the account within the internal database

Why?

CodePudding user response:

I do not think you really need civo Kubernetes ls, as you already have the kubeconfig which is enough for Kubernetes auth.

you can simple try kubectl get node it should work.

or

civo kubernetes config kube_demo --save --merge

#Merged with main kubernetes config: ~/.kube/config

Access your cluster with:
kubectl config use-context kube_demo
kubectl get node

kubernetes-cluster-administration-using-civo-cli

  • Related