<p>I created Kubernetes cluster on AWS with the help of kOps and I want to install LoadBalancer on it so I run the command</p>
<pre><code>kubectl create -f https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml
</code></pre>
<p>And got the following error:</p>
<pre><code>namespace/kube-ingress created
serviceaccount/nginx-ingress-controller created
service/nginx-default-backend created
deployment.apps/nginx-default-backend created
configmap/ingress-nginx created
service/ingress-nginx created
deployment.apps/ingress-nginx created
unable to recognize &quot;https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml&quot;: no matches for kind &quot;ClusterRole&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
unable to recognize &quot;https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml&quot;: no matches for kind &quot;Role&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
unable to recognize &quot;https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml&quot;: no matches for kind &quot;ClusterRoleBinding&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
unable to recognize &quot;https://raw.githubusercontent.com/kubernetes/kops/master/addons/ingress-nginx/v1.6.0.yaml&quot;: no matches for kind &quot;RoleBinding&quot; in version &quot;rbac.authorization.k8s.io/v1beta1&quot;
</code></pre>
<p>I tried to edit my cluster so that v1beta1 API will be supported by adding the following</p>
<pre><code>apiVersion: kops.k8s.io/v1alpha2
kind: Cluster
//ommited
spec:
  //ommited
  kubeAPIServer:
    runtimeConfig:
      rbac.authorization.k8s.io/v1beta1: &quot;true&quot;
  //ommited
</code></pre>
<p>But I keep getting the same error</p>
<p>Additional info, output of the following command</p>
<pre><code>kubectl version
</code></pre>
<p>looks like this</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;19&quot;, GitVersion:&quot;v1.19.7&quot;, GitCommit:&quot;1dd5338295409edcfff11505e7bb246f0d325d15&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-01-13T13:23:52Z&quot;, GoVersion:&quot;go1.15.5&quot;, Compiler:&quot;gc&quot;, Platform:&quot;windows/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;22&quot;, GitVersion:&quot;v1.22.2&quot;, GitCommit:&quot;8b5a19147530eaac9476b0ab82980b4088bbc1b2&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-09-15T21:32:41Z&quot;, GoVersion:&quot;go1.16.8&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>

Siarhei Vouchak
<p>Try applying this. <code>k apply -f</code>
I used the v1 here in the apiVersion so you need to do it to all the resources as needed to fit your k8s version.</p>
<pre><code># clusterRole for 1.22
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
  labels:
    k8s-addon: ingress-nginx.addons.k8s.io
  name: nginx-ingress-controller
  namespace: kube-ingress
rules:
  - apiGroups:
      - &quot;&quot;
    resources:
      - configmaps
      - endpoints
      - nodes
      - pods
      - secrets
    verbs:
      - list
      - watch
  - apiGroups:
      - &quot;&quot;
    resources:
      - nodes
    verbs:
      - get
  - apiGroups:
      - &quot;&quot;
    resources:
      - services
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - &quot;extensions&quot;
    resources:
      - ingresses
    verbs:
      - get
      - list
      - watch
  - apiGroups:
      - &quot;&quot;
    resources:
        - events
    verbs:
        - create
        - patch
  - apiGroups:
      - &quot;extensions&quot;
    resources:
      - ingresses/status
    verbs:
      - update
</code></pre>
