gpt4 book ai didi

kubernetes - "kubectl describe ingress ..."找不到请求的资源

转载 作者:行者123 更新时间:2023-12-02 11:36:57 25 4
gpt4 key购买 nike

我正在尝试在入口处执行描述,但不起作用。获取命令工作正常但不描述。我做错了什么吗?我正在针对 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

版本看起来不错:

Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.3", ..}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.10"...}

最佳答案

这可能是由于 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"}

您可能想要升级集群版本或降级 kubectl 版本。在 https://github.com/kubernetes/kubectl/issues/675 中查看更多详细信息

关于kubernetes - "kubectl describe ingress ..."找不到请求的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57952055/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com