Error install istio in GKE = the server could not find the requested resource (post ``)


i have error install istio in GKE

kubernetes ver = 1.11.2-gke.18 Istio ver = 1.0.4 Kubectl = latest from repo google

Error from server (NotFound): error when creating "install/kubernetes/istio-demo-auth.yaml": the server could not find the requested resource (post

i try follow from gcp tutorial

-- Abdi Darmawan

3 Answers


I am also getting this issue when installing a custom Istio helm chart:

[tiller] 2019/11/15 21:50:52 failed install perform step: release test failed: the server could not find the requested resource (post

I've confirmed the Istio CRDs are installed properly. Note how the installed Gateway CRD explicitly notes the accepted plural name:

    - istio-io
    - networking-istio-io
    kind: Gateway
    listKind: GatewayList
    plural: gateways
    - gw
    singular: gateway

I created an issue on Helm to see if that is the culprit, otherwise, I can open an issue on Istio to see if that is either. I'm very confused where the source of this issue could be coming from.

**Note: ** The type of the Gateway resource is correct:

kind: Gateway
-- Baily
Source: StackOverflow


You are missing the CustomResourceDefinition required by istio and hence getting this error. You need to apply following command from istio folder:

kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

This will create all the CRD's like virtualservice, destinationrules etc.

Try following official documentation of Istio to install it on GKE:

-- Prafull Ladha
Source: StackOverflow


istio works by defining a series of crds(Custom Resource Definition), for istio to work, you first need to run command like this:

kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml

for my version(istio v1.2.0), the command is

for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done

but as I follow the instructions from the documentatino, I still get the annoying messages:

Error from server (NotFound): error when creating "samples/bookinfo/networking/bookinfo-gateway.yaml": the server could not find the requested resource (post

as the hint implies, the requested resource "" cannot be found, and then I list the crds:

kubectl get crd

and I got a list like this: enter image description here

as I see inspect this, I find something wrong. the message issued by kubectl is (post, but the crd enlisted is post, then everything is clear, the kubectl CLI issued a wrong plural for word "gateway", the correct form is gateways, instead of gatewaies, so to satisfy the command form, the crd must change. And I edit this file:

vim install/kubernetes/helm/istio-init/files/crd-10.yaml

by changing the name from "" to "", everything is ok now.

-- Li Guang
Source: StackOverflow