no matches for kind “Deployment” in version “apps/v1”

我是研究僧i 提交于 2021-02-19 08:22:29

问题


I have minikube v0.26.0 version and kubectl v1.10.1 version and localKube v1.8.0
i get the following error when i try to deploy the kubeless ui

$ kubectl create -f https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml  

ERROR:

unable to recognize "https://raw.githubusercontent.com/kubeless/kubeless-ui/master/k8s.yaml": no matches for kind "Deployment" in version "apps/v1"


回答1:


after a long R & D

minikube start --logtostderr --v=0 --bootstrapper=localkube --vm-driver virtualbox  

now it downloaded the latest localkube version, and this solved my problem.




回答2:


As the comment says, you're using a version of Kubernetes that's very old. Deployment wasn't available under apps/v1 until Kubernetes 1.9, and you appear to be using 1.8.

If you want to solve this problem without upgrading your cluster, you'll need to replace the apiVersion value in all of your Deployment objects with one of the older paths:

apiVersion: apps/v1beta1
kind: Deployment

Note that while this will fix the immediate problem, you will still likely run into other compatibility issues, and should upgrade your cluster.



来源:https://stackoverflow.com/questions/60249842/no-matches-for-kind-deployment-in-version-apps-v1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!