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

