Error installing Emissary 2.0 on k8s v1.22 (no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1")
See original GitHub issueHello. I have the k8s cluster created with kubeadm (v1.22.1):
:~$ kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:45:37Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.1", GitCommit:"632ed300f2c34f6d6d15ca4cef3d3c7073412212", GitTreeState:"clean", BuildDate:"2021-08-19T15:39:34Z", GoVersion:"go1.16.7", Compiler:"gc", Platform:"linux/amd64"}
and I try to fresh install emissary-ingress 2.0 (devel) as described here (https://www.getambassador.io/docs/emissary/2.0/tutorials/getting-started/):
helm repo add datawire https://app.getambassador.io
helm repo update
helm install emissary-ingress datawire/emissary-ingress --namespace=ambassador --devel --set nodeSelector.role=master
but got the following error:
Error: failed to install CRD crds/getambassador.io_authservices.yaml: unable to recognize "": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"
The problem is related to #3406
When I manually fixied all the crd’s (https://github.com/emissary-ingress/emissary/tree/master/charts/emissary-ingress/crds) to use the new apiVersion apiextensions.k8s.io/v1
the problem was resolved. But my fixes are a little ugly, because it’s need to properly update descriptions, fields types (due to errors like oneOf[0].type: Forbidden: must be empty to be structural
) and strictly define other types like BoolOrString
.
I don’t know why most of users don’t face this problem (bcs i don’t see new related issued), but I think it’s quite important. If anyone wants i can publish my crd fixes.
Thanks.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:10 (3 by maintainers)
Top GitHub Comments
the instructions fully don’t work. link to the “stable version” (1.13) is broken. In general I’ve found the Ambassador/emissary docs to be a disaster. just incase anyone finds this thread, you’re not alone.
Running into this as well. @jar3b, could you publish the patches?