Error from server (NotFound): the server could not find the requested resource

来源:5-1 创建Nginx Pod

Kent肯特

2024-02-22

在 worker 上执行 kubectl create -f nginx.yaml 报错:
Error from server (NotFound): the server could not find the requested resource

在 master 看节点正常:
[root@host181 Chapter5]# kubectl get nodes
NAME STATUS ROLES AGE VERSION
host173 Ready 18h v1.19.3
host181 Ready master 23h v1.19.3

请问老师是什么原因?

写回答

1回答

清风

2024-02-22

nginx.yaml 发出来看看,看看你里面写的是什么类型的资源

0
2
清风
回复
Kent肯特
看着没什么问题,你参考这个文章:https://blog.csdn.net/u012972390/article/details/112853747
2024-02-26
共2条回复

Kubernetes 入门到进阶实战,系统性掌握 K8s 生产实践

阿里云最有价值专家亲授,云原生时代必备技能

1548 学习 · 621 问题

查看课程