getting error in velero cluster

37821879 90 Reputation points
2023-08-08T08:50:23.6633333+00:00

I am facing the below error for velero cluster. can you please assist me onthis.

An error occurred: error finding Kubernetes API server config in --kubeconfig, $KUBECONFIG, or in-cluster configuration: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

time="2023-08-08T08:32:51Z" level=info msg="Starting Velero server v1.10.1 (948b3790d5577dc7e77410a8b80ef7d8a6b00303-dirty)" logSource="pkg/cmd/server/server.go:191"

time="2023-08-08T08:32:51Z" level=info msg="1 feature flags enabled []" logSource="pkg/cmd/server/server.go:193"

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,236 questions
0 comments No comments
{count} votes

Accepted answer
  1. mutaz-msft 2,346 Reputation points Microsoft Employee
    2023-08-08T09:44:21.36+00:00

    Hi,

    This means that no kubeconfig file can be found for the Velero client to use. Velero looks for a kubeconfig in the following locations:

    1. The path specified by the --kubeconfig flag, if any. ( --kubeconfig=/path/to/kubeconfig )
    2. The path specified by the $KUBECONFIG environment variable, if any (export KUBECONFIG=/path/to/kubeconfig)
    3. The default path ~/.kube/config

    Hope this helps, and please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.