同时运行一个kubernetes应用程序
使用以下命令在docker上运行kubernetes时使用以下命令:kubectl -s http:// localhost:8080 run-container nginx –image = nginx –port = 80
我得到这个错误从服务器错误:服务器找不到请求的资源(后replicationControllers)
有人能给我一些关于如何解决问题的指导。 您的帮助是高度赞赏
首先检查docker服务和apiserver工作正常。
对于apiserver:使用
curl http://localhost:8080/api/
输出:
{ "versions": [ "v1" ] }
而且,使用
kubectl -s http://localhost:8080 run-container nginx -image=nginx:latest --port=80
要么
kubectl -s http://localhost:8080 run-container nginx --image=nginx --port=80 --api-version="v1"
在最后一个标志上添加你自己的api版本