Error: no matches for kind "Namespace" in version "v1"

When trying to add a Kubernetes deployment target I get this error:

error: no matches for kind "Namespace" in version "v1"

As I’m very new to Kubernetes and Octopus deploy and could not find anything online, im kinda stuck.
Help is appreciated!

This is the full log:

Cluster "octocluster" set. 
March 22nd 2021 10:18:28Info
Context "octocontext" created. 
March 22nd 2021 10:18:28Info
Switched to context "octocontext". 
March 22nd 2021 10:18:28Info
Property "clusters.octocluster.certificate-authority-data" set. 
March 22nd 2021 10:18:28Info
Creating kubectl context to http://IPADDR (namespace default) using a Token 
March 22nd 2021 10:18:28Info
User "octouser" set. 
March 22nd 2021 10:18:28Error
error: no matches for kind "Namespace" in version "v1" 
March 22nd 2021 10:18:28Info
kubectl version to test connectivity 
March 22nd 2021 10:18:28Info
Client Version: v1.20.0 
March 22nd 2021 10:18:28Error
Error from server (Forbidden): unknown 
March 22nd 2021 10:18:28Fatal
The remote script failed with exit code 1 

Hi @sjoerdroodenburg,

Thanks for reaching out.

Would you be able to either paste screenshots of your current step as well as any applicable files referenced in the step? If it needs to be private please feel free to DM me.

Best,
Jeremy

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.