cloud-native-sandbox icon indicating copy to clipboard operation
cloud-native-sandbox copied to clipboard

failed to install k8s dashboard with "kubectl apply -f install/dashboard/"

Open palmlan opened this issue 3 years ago • 1 comments

Environment

  • OS: win10
  • Kubernetes version: 1.19.7
  • Docker version: 20.10.6 (docker engine)
  • Docker Desktop version: 3.3.3

What I did?

Try to install k8s dashboard: kubectl apply -f install/dashboard/

Messages

I got this error message:

secret/kubernetes-dashboard-certs created serviceaccount/kubernetes-dashboard created role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created service/kubernetes-dashboard created error: unable to recognize "install\dashboard\kubernetes-dashboard.yaml": no matches for kind "Deployment" in version "apps/v1beta2"

palmlan avatar May 24 '21 13:05 palmlan

change version from apps/v1beta2 to apps/v1 may work

lin344902118 avatar Sep 27 '21 06:09 lin344902118