目录

k8s查询队列方法

目录

k8s查询队列方法

k8s1.20环境中的调度器队列信息无法通过下面命令查到

1
kubectl get queue

可以通过查询etcd方式获取,命令如下,ENDPOINTS改为实际的etcd地址

1
2
3
ENDPOINTS=https://172.31.4.33:2379

ETCDCTL_API=3 etcdctl --endpoints=${ENDPOINTS} --cacert=/etc/ssl/etcd/ssl/ca.pem --cert=/etc/ssl/etcd/ssl/member-node1.pem --key=/etc/ssl/etcd/ssl/member-node1-key.pem get / --prefix --keys-only|grep queue

输出打印如下:

1
2
3
4
5
6
7
8
/registry/apiextensions.k8s.io/customresourcedefinitions/queues.scheduling.incubator.k8s.io
/registry/apiextensions.k8s.io/customresourcedefinitions/queues.scheduling.sigs.dev
/registry/scheduling.incubator.k8s.io/queues/00000000000000000000000000000000
/registry/scheduling.incubator.k8s.io/queues/default
/registry/scheduling.incubator.k8s.io/queues/emergency-queue
/registry/scheduling.sigs.dev/queues/1b662d2a0cdc4d58a577be82fde44906
/registry/scheduling.sigs.dev/queues/84a5d7b9407c47f9b37d2d8c081b0d41
/registry/scheduling.sigs.dev/queues/a85129c8027e4c97a3395437bf338aa2