Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cluster configuration not found error #1004

Open
adl3n opened this issue Sep 11, 2024 · 2 comments
Open

cluster configuration not found error #1004

adl3n opened this issue Sep 11, 2024 · 2 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@adl3n
Copy link

adl3n commented Sep 11, 2024

Hello,
i have a trouble when i create the kubeconfig for developers on my Macbook.

I have tried to create with 0.31 version, and 0.29.

kubectl-kc create
WARNING: This feature is only supported in kubernates v1.24 and later.
user name: developer
😸 Select:kubernetes-admin@kubernetes
🚀 Namespace: dev is selected.
CSR: developer create success
CSR: developer has been approved
😸 Select:admin
RoleBinding : developer-admin create success
Error: cluster configuration not found
Usage:
kubecm create [flags]

Examples:

Create new KubeConfig(experiment)

kubecm create

Create new KubeConfig(experiment) with flags

kubecm create --user test --namespace default --cluster-role view --context-name kind-kind

Flags:
--cluster-role string cluster role for user
--context-name string context name for kubeconfig
-h, --help help for create
-n, --namespace string namespace for user
--print-clean-up print clean up command
--user string user name for kubeconfig

Global Flags:
--config string path of kubeconfig (default "$HOME/.kube/config")
-m, --mac-notify enable to display Mac notification banner
-s, --silence-table enable/disable output of context table on successful config update
-u, --ui-size int number of list items to show in menu at once (default 4)

cluster configuration not found

Despite, i have kubeconfig that is working properly:

kubectl config view
apiVersion: v1
clusters:

  • cluster:
    certificate-authority-data: DATA+OMITTED
    server: https://REDACTED:6443
    name: kubernetes
    contexts:
  • context:
    cluster: kubernetes
    namespace: dev
    user: kubernetes-admin
    name: kubernetes-admin@kubernetes
    current-context: kubernetes-admin@kubernetes
    kind: Config
    preferences: {}
    users:
  • name: kubernetes-admin
    user:
    client-certificate-data: REDACTED
    client-key-data: REDACTED

kubectl version
Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.5", GitCommit:"c285e781331a3785a7f436042c65c5641ce8a9e9", GitTreeState:"clean", BuildDate:"2022-03-16T15:51:05Z", GoVersion:"go1.17.8", Compiler:"gc", Platform:"darwin/arm64"}
Server Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.8", GitCommit:"66fee42707cd7f5a89f1987f7cb81b02dd19161c", GitTreeState:"clean", BuildDate:"2023-11-15T16:50:09Z", GoVersion:"go1.20.11", Compiler:"gc", Platform:"linux/amd64"}

@sunny0826 sunny0826 self-assigned this Sep 14, 2024
@sunny0826
Copy link
Owner

You appear to be using the kubectl plugin version of kubecm. Could you try using it as a binary? You can install kubecm using brew install kubecm.

@sunny0826
Copy link
Owner

update: I haven't reproduced the problem so far. If you have new inputs, please leave them in the issue. Thank you very much!

@sunny0826 sunny0826 added the kind/bug Something isn't working label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants