How to get a Google managed certificate (ingress)? I received no matches for "ManagedCertificate"

4/16/2019

I've been following the document (https://cloud.google.com/kubernetes-engine/docs/how-to/managed-certs) to get Google managed ssl.

It was successfully before. However, after I completely deleted my cluster and started it over, I received this error message from

kubectl apply -f example-certificate.yaml
error: unable to recognize "example-certificate.yaml": no matches for 
kind "ManagedCertificate" in version "networking.gke.io/v1beta1"

I re-installed Kubernetes with the latest Kubernetes.

Client Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.9-dispatcher", GitCommit:"e3f5193e8f1091a162af7e17a781e6a3129bcfd0", GitTreeState:"clean", BuildDate:"2019-03-28T18:15:47Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11+", GitVersion:"v1.11.7-gke.12", GitCommit:"06f08e60069231bd21bdf673cf0595aac80b99f6", GitTreeState:"clean", BuildDate:"2019-02-25T20:37:10Z", GoVersion:"go1.10.8b4", Compiler:"gc", Platform:"linux/amd64"}

Then, I created a reserved external IP address.

gcloud compute addresses create example-ip-address --global

After that, I'm still facing the same issue. I spent many hours to find a document about the error message, but couldn't find any clue about the error message.

-- Steven Jin
google-cloud-platform
google-kubernetes-engine
kubernetes

3 Answers

4/16/2019

I just had the same problem, as @Victor G. said, upgrading my master to 1.12.6-gke.10 fixed the problem.

-- math3vz
Source: StackOverflow

4/16/2020

I had a similar issue on GKE cluster v 1.15.9-gke.24 Using apiVersion: networking.gke.io/v1beta1 solved it for me.

-- Hari
Source: StackOverflow

4/16/2019

You chose a old version for your cluster. The current default version 1.11.7-gke.12 does not support it. Just upgrade your cluster.

-- Victor G.
Source: StackOverflow