码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-11-01 22:44:45      阅读:2779      评论:0      收藏:0      [点我收藏+]

标签:ble   def   dem   app   https   creat   deploy   ica   dep   

0x00 Problem

[root@k8sm90 demo]# kubectl create -f tomcat-deployment.yaml
error: unable to recognize "tomcat-deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"

0x01 Solution

修改 apiVersion 选项: apps/v1

[root@k8sm90 demo]# cat tomcat-deployment.yaml
apiVersion: apps/v1
kind: Deployment
...

因为我的 k8s 版本是 1.16.2,在这个版本中 Deployment 已经从 extensions/v1beta1 弃用

DaemonSet, Deployment, StatefulSet, and ReplicaSet resources will no longer be served from extensions/v1beta1, apps/v1beta1, or apps/v1beta2 by default in v1.16.

参考:https://github.com/Azure/AKS/issues/1205

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

标签:ble   def   dem   app   https   creat   deploy   ica   dep   

原文地址:https://www.cnblogs.com/nnylee/p/11779653.html

(0)
(1)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!