Kubernetes no matches for kind "Deployment" in version "extensions/v1beta1" Kubernetes no matches for kind "Deployment" in version "extensions/v1beta1" kubernetes kubernetes

Kubernetes no matches for kind "Deployment" in version "extensions/v1beta1"


Just change apiVersion to this: apiVersion: apps/v1


My problem was because in the Jenkinsfile I was using the Kubernetes dashboard URL instead of the Kubernetes API URL, so the kubectl of Jenkins couldn't recognize the kubernetes server.

So finally, using the API URL and updating the apiVersion it works for me.