Gitlab-runner error on K8s install

Hello,

I am following the instructions found here to install the gitlab runner.

However, I get this error:

kubectl apply -f gitlab-runner.yaml
error: unable to recognize “gitlab-runner.yaml”: no matches for kind “Runner” in version "apps.gitlab.com/v1beta2

The secret and gitlab-runner.yaml look correct.

kubectl get secret -n gitlab gitlab-gitlab-runner-secret
NAME TYPE DATA AGE
gitlab-gitlab-runner-secret Opaque 2 119m

apiVersion: apps.gitlab.com/v1beta2 kind: Runner metadata: name: gitlab-runner spec: gitlabUrl: https://gitlab.example.com buildImage: alpine token: gitlab-gitlab-runner-secret

Can anyone offer insight into what is wrong?

This is the video i followed, you should watch this, and this error because u are doing wrong step, follow the video and it’ll work