遇到问题---kubectl delete deployments报错Error from server (NotFound): the server could not find the reque
情况
使用kubectl命令可以查看到deployments
zhangxiaofans-MacBook-Pro:Downloads joe$ kubectl get deployments
NAME READY UP-TO-DATE AVAILABLE AGE
gitlab-runner-gitlab-runner 1/1 1 1 5d23h
test-nfs 0/1 1 0 10d
但是无法删除,删除时报错如下:
zhangxiaofans-MacBook-Pro:Downloads joe$ kubectl delete deployment test-nfs
Error from server (NotFound): the server could not find the requested resource
原因
首先需要明确 Error from server (NotFound): the server could not find the requested resource 这个类型的错误可能的原因很多,比如 权限不足,命名空间不一致,证书过期等等。
我这里 用的是 k8s的新版本集群,但是 kubectl 命令的客户端是老版本的,老版本的kubectl命令无法识别 新集群的一些 apiversion 导致的。
使用kubectl version命令查看
发现 集群时1.17版本 kubectl客户端命令是 1.10老版本。
解决方案
安装新版本的kubectl命令客户端
参考
遇到问题---kubectl delete deployments报错Error from server (NotFound): the server could not find the reque相关推荐
- 运行mongo数据库报错Error: couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketExce
1. 如果你在运行mongo数据库的时候出现以下报错信息: 2. 原因: 你还没有启动mongodb服务 3. 解决办法:需要通过管理员的身份运行powershell 或者cmd , 在命令行工具中运 ...
- mysql创建用户报错ERROR 1290
使用navicat 给mysql创建用户报错ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv op ...
- mysql报错ERROR 1206 (HY000): The total number of locks exceeds the lock table size的解决方法...
1. 问题背景 InnoDB是新版MySQL(v5.5及以后)默认的存储引擎,之前版本的默认引擎为MyISAM,因此,低于5.5版本的mysql配置文件.my.cnf中,关于InnoD ...
- mysql报错-ERROR 1206 (HY000)- The total number of locks exceeds the lock table size-的解决方法
mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法 问题 ...
- npm start报错Error: error:0308010C:digital envelope routines::unsupported
(41条消息) npm run dev 报错:Error: error:0308010C:digital envelope routines::unsupported_爱的叹息的博客-CSDN博客 n ...
- [问题已处理]-k8s报错Error from server- error dialing backend- dial tcp 172.16.20.88-10250
导语:重启服务器之后,节点连接pod报错Error from server: error dialing backend: dial tcp 172.16.20.88:10250 现象是pod都无法进 ...
- Flex报错Error #2048: 安全沙箱冲突
Flex+JPA架构,JPA程序迁移,从A服务器到B.其他一切没变,唯一变的就是IP. 前端Flex也就是swf报错Error #2048: 安全沙箱冲突:http://xxx.swf 不能从 xxx ...
- git:Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists)....
Git fetch和git pull的区别, 解决Git报错:error: You have not concluded your merge (MERGE_HEAD exists). 解决办法一:保 ...
- SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure -
SAP MM MB21创建预留单据报错- Error during conversion to alternative units of measure - 某日下午收到业务部门报错,说是创建预留单保 ...
最新文章
- 测试用例设计方法基础理论知识
- RT-Thread逐飞-智能车培训之RT-Thread在全向行进组中的应用
- python中打印二维列表数据
- 【匈牙利算法】【二分图匹配】【转载】趣写算法系列之--匈牙利算法
- 只用一周的业余时间,这位逆天博士生解决了困扰数学界数十年的难题
- opencv测试代码_玩转OpenCv(二):安装vs2010和opencv3
- 韦诺之战wesnoth没有声音
- (Sublime Text 3)完美替换 GAMS 难用的编辑器
- 苹果支付2500万美元和解专利侵权诉讼 获技术授权
- 新软件--AutoReply(自动回复),还能自动接听,做答录机
- 微pe工具箱怎么安装系统?
- 省会、自治区、直辖市、特别行政区
- 服务器客户端证书,使用服务器和客户端证书以及私钥创建SSLContext
- 数值分析(9):数值积分之Newton-Cotes求积公式和复合求积公式
- ROS学习【3】-----ROS通信编程:小乌龟走正方形
- 国家公祭日(国家哀悼日)将网站改成悼念灰黑色的方法
- 【Linux 4】定时任务调度与进程服务管理
- 网络基础之静态路由配置及网络问题排查思路
- ECNA 2017 Problem J: Workout for a Dumbbell 模拟
- nodejs 获取系统环境变量_Node.js中环境变量process.env的一些事详解
热门文章
- 常用搜索引擎搜索串【ZT+原创】
- 最全面的垂直搜索引擎统计-行业搜索--垂直搜索
- jquery-1.11.1.js
- XENAPP 7.6 和 XENDESKTOP 7.6 初体验之四 创建桌面计算机目录
- Springboot+mysql+基于VUE框架的商城综合项目设计与实现 毕业设计-附源码111612
- (附源码)Springboot+mysql+基于VUE框架的商城综合项目设计与实现 毕业设计111612
- 智慧工地人员/车辆管理整体解决方案
- 计算8+88+888+…前10项之和编写应用程序,使用for循环语句计算8+88+888+…前10项之和。(java)
- Elasticsearch 6.x Mapping设置
- 针对NFT的网络钓鱼