question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error installing Emissary 2.0 on k8s v1.22 (no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1")

See original GitHub issue

Hello. 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:closed
  • Created 2 years ago
  • Reactions:8
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

9reactions
irl-segfaultcommented, Oct 3, 2021

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.

2reactions
foltikcommented, Sep 1, 2021

Running into this as well. @jar3b, could you publish the patches?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to deploy emissary-ingress in local kubernetes ...
It started failing with error no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta" . I searched and found an ...
Read more >
Problems after upgrade cluster to 1.22 : r/kubernetes
I'm getting an error: error from kubernetes: unable to recognize "": no matches for kind "Ingress" in version "extensions/v1beta1".
Read more >
k8s - techbloc.net
txt" paths="./..." Generate Custom Resource Definition (CRD) manifests. In the previous step we defined the API with spec and status fields of the...
Read more >
emissary-ingress 8.3.1 · helm/datawire
Parameter Description Default replicaCount Number of Ambassador replicas 3 test.image Image to use for the test Pod busybox ingressClassResource.enabled true
Read more >
Add a conversion webhook to an operator to convert API ...
For example, when we deploy a custom resource object with the API version v1alpha1 using kubectl apply to the cluster that API version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found