Error: unable to build kong api client(s): no matches for kind "EndpointSlice" in version "discovery.k8s.io/v1"

Hi All,
Getting the following error while installing by using all-in-one-dbless.yaml. Could you please help me on this.
Error: unable to build kong api client(s): no matches for kind “EndpointSlice” in version “discovery.k8s.io/v1

Thanks,
Anjanna.