<p>I am using Docker Desktop version 3.6.0 which has Kubernetes 1.21.3.</p>
<p>I am following this tutorial to get started on Istio</p>
<p><a href="https://istio.io/latest/docs/setup/getting-started/" rel="nofollow noreferrer">https://istio.io/latest/docs/setup/getting-started/</a></p>
<p>Istio is properly installed as per the instructions.</p>
<p>Now whenever i try to apply the Istio configuration</p>
<p>by issuing the command <code>kubectl apply -f samples/bookinfo/networking/bookinfo-gateway.yaml</code>.</p>
<p>I get the following error</p>
<pre><code>unable to recognize &quot;samples/bookinfo/networking/bookinfo-gateway.yaml&quot;: no matches for kind &quot;Gateway&quot; in version &quot;networking.istio.io/v1alpha3&quot;
unable to recognize &quot;samples/bookinfo/networking/bookinfo-gateway.yaml&quot;: no matches for kind &quot;VirtualService&quot; in version &quot;networking.istio.io/v1alpha3&quot;
</code></pre>
<p>I checked in internet and found that the Gateway and VirtualService resources are missing.</p>
<p>If i perform <code>kubectl get crd</code> i get no resources found</p>
<p>Content of bookinfo-gatway.yaml</p>
<pre><code>    apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
  name: bookinfo-gateway
spec:
  selector:
    istio: ingressgateway # use istio default controller
  servers:
  - port:
      number: 80
      name: http
      protocol: HTTP
    hosts:
    - &quot;*&quot;
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: bookinfo
spec:
  hosts:
  - &quot;*&quot;
  gateways:
  - bookinfo-gateway
  http:
  - match:
    - uri:
        exact: /productpage
    - uri:
        prefix: /static
    - uri:
        exact: /login
    - uri:
        exact: /logout
    - uri:
        prefix: /api/v1/products
    route:
    - destination:
        host: productpage
        port:
          number: 9080
</code></pre>

saurav
<p>The CRDs for istio should be installed as part of the istioctl install process, I'd recommend re-running the install if you don't have them available.</p>
<pre><code>&gt;&gt;&gt; ~/.istioctl/bin/istioctl install --set profile=demo -y
✔ Istio core installed
✔ Istiod installed
✔ Egress gateways installed
✔ Ingress gateways installed
✔ Installation complete
</code></pre>
<p>kubectl get po -n istio-system should look like</p>
<pre><code>&gt;&gt;&gt; kubectl get po -n istio-system
NAME                                   READY   STATUS    RESTARTS   AGE
istio-egressgateway-7ddb45fcdf-ctnp5   1/1     Running   0          3m20s
istio-ingressgateway-f7cdcd7dc-zdqhg   1/1     Running   0          3m20s
istiod-788ff675dd-9p75l                1/1     Running   0          3m32s
</code></pre>
<p>Otherwise your initial install has gone wrong somewhere.</p>
