Gitlab-runner error on K8s install


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 "

The secret and gitlab-runner.yaml look correct.

kubectl get secret -n gitlab gitlab-gitlab-runner-secret
gitlab-gitlab-runner-secret Opaque 2 119m

apiVersion: kind: Runner metadata: name: gitlab-runner spec: gitlabUrl: 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