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

no openapi getter #1333

Closed
Aminechouchene98 opened this issue Jul 26, 2024 · 6 comments
Closed

no openapi getter #1333

Aminechouchene98 opened this issue Jul 26, 2024 · 6 comments

Comments

@Aminechouchene98
Copy link

when creating the provider kubeconfig using provider-kubeconfig.py after this command
python3 provider-kubeconfig.py -s $apiserver create $KUBEPLUS_NS
i get this error
b'error: no openapi getter\n'

@devdattakulkarni
Copy link
Contributor

devdattakulkarni commented Jul 26, 2024

@Aminechouchene98 Strange. Did you get this error by following the steps from the README?
Can you share your environment details?
Kubernetes version (server and client) and k8s provider (minikube/kind/cloud)

@Aminechouchene98
Copy link
Author

Ubuntu 22.04.4 LTS
server version v1.28.11.+rke2r1
client version v1.28.11+rke2r1

@chiukapoor
Copy link
Contributor

@Aminechouchene98 may you please provide some additional information?

python3 --version
which kubectl
kubectl version

@Aminechouchene98
Copy link
Author

python3 --version
Python 3.10.12
which kubectl
/usr/local/bin/kubectl
kubectl version
Client Version: v1.28.11+rke2r1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
server version v1.28.11.+rke2r1

@devdattakulkarni
Copy link
Contributor

@Aminechouchene98 Can you share the location of the default kubeconfig file on your RKE environment?

usage: provider-kubeconfig.py [-h] [-k KUBECONFIG] [-s APISERVERURL] [-f FILENAME] [-p PERMISSIONFILE] {create,delete,update,extract} namespace
You can pass the full path of the kubeconfig file with '-k' flag when creating the provider kubeconfig.

@Aminechouchene98
Copy link
Author

it worked after passing the kubeconfig

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants