2 kubernetes kubernetes-ingress azure-aks
我正在尝试对入口执行描述但不起作用。Get 命令工作正常,但没有描述。我做错了什么吗?我正在针对 AKS 运行它。
usr@test:/mnt/c/Repos/user/charts/canary$ kubectl get ingress
NAME HOSTS ADDRESS PORTS AGE
ingress-route xyz.westus.cloudapp.azure.com 80 6h
usr@test:/mnt/c/Repos/user/charts/canary$ kubectl describe ingress ingress-route
Error from server (NotFound): the server could not find the requested resource
Run Code Online (Sandbox Code Playgroud)
版本看起来不错:
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", ..}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.10"...}
Run Code Online (Sandbox Code Playgroud)
这可能是由于您的 Kubernetes 集群版本和您的 kubectl 版本不兼容造成的。
运行kubectl version以打印当前上下文的客户端和服务器版本,例如:
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T17:01:15Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.10-gke.0", GitCommit:"569511c9540f78a94cc6a41d895c382d0946c11a", GitTreeState:"clean", BuildDate:"2019-08-21T23:28:44Z", GoVersion:"go1.11.13b4", Compiler:"gc", Platform:"linux/amd64"}
Run Code Online (Sandbox Code Playgroud)
您可能想要升级集群版本或降级 kubectl 版本。在https://github.com/kubernetes/kubectl/issues/675 中查看更多详细信息
| 归档时间: |
|
| 查看次数: |
4795 次 |
| 最近记录: |