cloud-ark / kubeplus

Kubernetes Operator for multi-instance multi-tenancy
https://cloudark.io/
Apache License 2.0
662 stars 82 forks source link

no openapi getter #1333

Closed Aminechouchene98 closed 3 months ago

Aminechouchene98 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

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

chiukapoor commented 3 months ago

@Aminechouchene98 may you please provide some additional information?

python3 --version
which kubectl
kubectl version
Aminechouchene98 commented 3 months ago

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 commented 3 months ago

@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 commented 3 months ago

it worked after passing the kubeconfig