<p>I've been trying to complete the first step of <a href="https://istio.io/docs/tasks/security/authz-http/" rel="nofollow noreferrer">https://istio.io/docs/tasks/security/authz-http/</a>. With the following file, i'm supposed to activate authorization on the default namespace of my cluster.</p>

<p>However, when i run the following script:</p>

<pre><code>apiVersion: "rbac.istio.io/v1alpha1"
kind: ClusterRbacConfig
metadata:
  name: default
spec:
  mode: 'ON_WITH_INCLUSION'
  inclusion:
    namespaces: ["default"]
</code></pre>

<p>which is an exact copy of the script on the website, i get the following error:
<code>error: unable to recognize "5-authorization/yaml-files/rbac-config-ON.yaml": no matches for kind "ClusterRbacConfig" in version "rbac.istio.io/v1alpha1"</code>.</p>

<p>Unless istio's documentation is severely out-of-date, and the apiVersion is no longer the correct one, i don't know what causes this.</p>

Patrick Weyn
<p>As <a href="https://stackoverflow.com/users/7298328/szymig">szymig</a> mentioned, the wrong version of Istio was used. GKE runs 1.2.2.</p>
