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