Kubernetes provide cannot create namespace

Hi,

I’m trying to create a Kubernetes namespace, with the kubernetes provider, in combination with the kubernetes_namespace resource, but I keep getting the following error:

Error: the server could not find the requested resource (post namespaces)

Does anyone know what is causing this?

Many thanks,

John