cloud-native-sandbox
cloud-native-sandbox copied to clipboard
failed to install k8s dashboard with "kubectl apply -f install/dashboard/"
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"
change version from apps/v1beta2 to apps/v1 may work