0
雖然本地運行的kubernetes與碼頭工人用下面的命令 kubectl -s http://localhost:8080運行容器nginx的--image = nginx的--port = 80同時運行的應用程序kubernetes
我從服務器獲取這個錯誤錯誤:服務器找不到請求的資源(post replicationControllers)
有人能給我一些關於如何解決問題的指針。 高度讚賞您的幫助
雖然本地運行的kubernetes與碼頭工人用下面的命令 kubectl -s http://localhost:8080運行容器nginx的--image = nginx的--port = 80同時運行的應用程序kubernetes
我從服務器獲取這個錯誤錯誤:服務器找不到請求的資源(post replicationControllers)
有人能給我一些關於如何解決問題的指針。 高度讚賞您的幫助
首先檢查碼頭服務和apiserver是否正常工作。
對於API服務器:使用
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版本