Getting "Error from server (NotFound): while deploying kustomize

What version of Kubernetes is required for Kustomize and how to achieve that ?

Getting the following error when trying: kubectl apply -k kustomize/install/namespace:

Error from server (NotFound): the server could not find the requested resource