Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

[BUG] What is the minimum or maximum k8s version supported by YurtCluster Operator? #25

Open
OyamingO opened this issue Mar 19, 2022 · 3 comments
Assignees
Labels

Comments

@OyamingO
Copy link

In k8s v1.16.6,running : "helm install yurtcluster-operator . -n kube-system" will get an Error:
INSTALLATION FAILED: failed to install CRD crds/apps.openyurt.io_nodepools.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

@rambohe-ch
Copy link
Member

/assign @SataQiu @gnunu

@rambohe-ch
Copy link
Member

In k8s v1.16.6,running : "helm install yurtcluster-operator . -n kube-system" will get an Error: INSTALLATION FAILED: failed to install CRD crds/apps.openyurt.io_nodepools.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

@OyamingO In your k8s env, please exec command kubectl api-resources and upload the output here.
so we can check kind CustomResourceDefinition is supported in your cluster or not.

@OyamingO
Copy link
Author

I solved the problem by running the following code:
kind create cluster --config /home/cloud/tools/kind-cluster.yaml --image=kindest/node:v1.21.1

The reason of this problem is the k8s version >1.23. In the official code provided before, the k8s version is automatically specified by kind. So we can use the parameter --image to specify a k8s version < 1.23.

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

No branches or pull requests

4 participants