凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 374297
  • 博文数量: 49
  • 博客积分: 2562
  • 博客等级: 少校
  • 技术积分: 417
  • 用 户 组: 普通用户
  • 注册时间: 2005-11-03 09:10
个人简介

时不我待。

文章分类

全部博文(49)

文章存档

2024年(1)

2020年(3)

2013年(1)

2012年(5)

2011年(9)

2010年(4)

2009年(9)

2008年(15)

2005年(2)

相关博文
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

分类: 虚拟化

2024-05-28 12:54:03

kubectl get pod时 报错couldn\'t get resource list for cert-凯发app官方网站

在k8s下执行"kubectl get pod "时,报一下错误:



点击(此处)折叠或打开

  1. [root@app1 ~]kubectl get pod
  2. e0528 12:27:42.105135 187150 memcache.go:255] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  3. e0528 12:27:42.106730 187150 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  4. e0528 12:27:42.108499 187150 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  5. e0528 12:27:42.111427 187150 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request

问题定位:
该问题由于kubectl 在访问apiservice过程导致,通过以下命令查看问题原因: 


点击(此处)折叠或打开

  1. [root@app1 ~]# kubectl describe apiservice v1alpha1.cert-manager.io
  2. e0528 12:25:53.708862 185582 memcache.go:255] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  3. e0528 12:25:53.713279 185582 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  4. e0528 12:25:53.715726 185582 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  5. e0528 12:25:53.718525 185582 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  6. name: v1alpha1.cert-manager.io
  7. namespace:
  8. labels: app=cert-manager-webhook-dnspod
  9.               app.kubernetes.io/managed-by=helm
  10.               chart=cert-manager-webhook-dnspod-0.3.3
  11.               heritage=helm
  12.               release=cert-manager-webhook-dnspod
  13. annotations: cert-manager.io/inject-ca-from: cert-manager/cert-manager-webhook-dnspod-webhook-tls
  14.               meta.helm.sh/release-name: cert-manager-webhook-dnspod
  15.               meta.helm.sh/release-namespace: cert-manager
  16. api version: apiregistration.k8s.io/v1
  17. kind: apiservice
  18. metadata:
  19.   creation timestamp: 2023-07-14t02:18:21z
  20.   managed fields:
  21.     api version: apiregistration.k8s.io/v1
  22.     fields type: fieldsv1
  23.     fieldsv1:
  24. …………

  25.   service:
  26.     name: cert-manager-webhook-dnspod
  27.     namespace: cert-manager
  28.     port: 443
  29.   version: v1alpha1
  30.   version priority: 15
  31. status:
  32.   conditions:
  33.     last transition time: 2024-01-24t02:00:32z
  34.     message: endpoints for service/cert-manager-webhook-dnspod in "cert-manager" have no addresses with port name "https"
  35.     reason: missingendpoints
  36.     status: false
  37.     type: available
  38. events: <none>
cert-manager没有地址,导致此问题报错

查看endpint相关信息,缺少ip地址:

点击(此处)折叠或打开

  1. [root@app1 ~]# kubectl get endpoints -a|grep dns
  2. e0528 12:28:13.420696 187613 memcache.go:255] couldn't get resource list for cert-man
  3. cert-manager cert-manager-webhook-dnspod <none> 39m
  4. kube-system kube-dns 172.16.245.122:53,172.16.245.123:53,172.16.245.122:53 3 more... 452d

cert-manager在该平台中未使用,使用以下命令进行清查操作:

点击(此处)折叠或打开

  1. [root@app1 ~]# kubectl delete endpoints -n cert-manager cert-manager-webhook-dnspod
  2. e0528 12:28:58.992511 188344 memcache.go:255] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  3. e0528 12:28:58.994115 188344 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  4. e0528 12:28:58.996940 188344 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  5. e0528 12:28:58.998950 188344 memcache.go:106] couldn't get resource list for cert-manager.io/v1alpha1: the server is currently unable to handle the request
  6. endpoints "cert-manager-webhook-dnspod" deleted

再次查看,未发现系统报错,问题解决。

点击(此处)折叠或打开

  1. [root@app1 ~]# kubectl get pod
  2. name ready status restarts age
  3. sleep-577dfc8474-5rq54 1/1 running 1 (3h58m ago) 125d
  4. spring-boot-helloworld-6985c7f8bb-rmd4h 1/1 running 1 (3h58m ago) 125d



阅读(353) | 评论(0) | 转发(0) |
0

上一篇:政策简单,有利执行

下一篇:没有了

给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图