Kong ingress-controller failed

Hello,

The kong ingress controller failed with following error.

 State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1

upon checking the container logs, the following errors are present

time="2023-12-04T14:10:49Z" level=info msg="Starting Controller" logger=controllers.HTTPRoute
W1204 14:10:49.487807       1 reflector.go:424] pkg/mod/k8s.io/client-go@v0.26.3/tools/cache/reflector.go:169: failed to list *v1beta1.HTTPRoute: httproutes.gateway.networking.k8s.io is forbidden: User "system:serviceaccount:kong:ingress-controller-kong" cannot list resource "httproutes" in API group "gateway.networking.k8s.io" at the cluster scope
E1204 14:10:49.487831       1 reflector.go:140] pkg/mod/k8s.io/client-go@v0.26.3/tools/cache/reflector.go:169: Failed to watch *v1beta1.HTTPRoute: failed to list *v1beta1.HTTPRoute: httproutes.gateway.networking.k8s.io is forbidden: User "system:serviceaccount:kong:ingress-controller-kong" cannot list resource "httproutes" in API group "gateway.networking.k8s.io" at the cluster scope
time="2023-12-04T14:10:49Z" level=error msg="if kind is a CRD, it should be installed before calling Start" error="no matches for kind \"GatewayClass\" in version \"gateway.networking.k8s.io/v1beta1\"" kind="{\"Group\":\"gateway.networking.k8s.io\",\"Kind\":\"GatewayClass\"}" logger=controller-runtime.source
time="2023-12-04T14:10:49Z" level=error msg="if kind is a CRD, it should be installed before calling Start" error="no matches for kind \"Gateway\" in version \"gateway.networking.k8s.io/v1beta1\"" kind="{\"Group\":\"gateway.networking.k8s.io\",\"Kind\":\"Gateway\"}" logger=controller-runtime.source
kong:ingress-controller-kong" cannot list resource "httproutes" in API group "gateway.networking.k8s.io" at the cluster scope

Hi @mesh001 , may I know which version of Kong Ingress Controller your using? if you are using Kong Ingress Controller 3.0 use below command .
kubectl apply -f https://raw.githubusercontent.com/Kong/charts/main/charts/kong/crds/custom-resource-definitions.yaml