The server doesn't have a resource type "Deployment"

Error While trying to Setup Infrastructure Definition in Harness

Here is the error message I am seeing when I try to submit the form (GCP, Kubernetes)

Invalid request: error: the server doesn’t have a resource type “Deployment”

Please let me know if anyone know how to resolve this issue!

Vijay,

Welcome to the community and hope you are having a great holiday season.

Are you trying to deploy to GKE [e.g your GCP and K8s comment?]

Probably the easiest way to connect to GKE is just to deploy a Kubernetes Delegate into the GKE cluster.

Then can add the GKE cluster as a Cloud Provider then the Infrastructure Defination:

Party Trick:

Cheers!

-Ravi