What Kubernetes API endpoint can I use to see if there are unscheduled pods?

leemicw

I am trying to write a .net core application to run in a kubernetes pod. This application needs to know if the cluster has been unable to schedule any pods.

I have tried getting deployment data from

kubectl get --raw /apis/apps/v1/namespaces/default/deployments

I can see the unavailableReplicas number and the MinimumReplicasUnavailable message.

Are these valid metrics to watch for the cluster status?

Is there a way to query the cluster as a whole instead of by deployment?

Bimal

If you are looking for the images in each node in the cluster you can try

kubectl get nodes -o json

which will return a json object or using --field-selector as shown below.

kubectl get pods --all-namespaces --field-selector=status.phase==Pending

and using api

kubectl get --raw /api/v1/pods?fieldSelector=status.phase==Pending

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

What is Kubernetes API analog for `kubectl auth can-i`

分類Dev

how to use Kubernetes DNS for pods?

分類Dev

Kubernetes can not list pods as user

分類Dev

How can I see what processes are running?

分類Dev

How can I use DevTools to see what font is being used in an SVG?

分類Dev

what is the absolute path for kubernetes pods logs?

分類Dev

How can I use this API?

分類Dev

I have a REST endpoint exposed in JAVA that I need to invoke through Marklogic- What can be the Best Way?

分類Dev

What are production uses for Kubernetes pods without an associated deployment?

分類Dev

What WooCommerce API should I use on the server?

分類Dev

What does the following JavaScript function do and what can I use it for?

分類Dev

kubernetes pods stuck at containercreating

分類Dev

kubernetes api: Failure 403 pods is forbidden: User "system:serviceaccount:default:journalbeat" cannot list resource "pods" in API group ""

分類Dev

How can I see what is triggering a "transaction check vs depsolve" error?

分類Dev

How can I see ChromeLogger output in the Postman console when debugging an API?

分類Dev

What are Launchpad packaging recipes and how can I use them?

分類Dev

What SQL command can i use to solve the following dilemma?

分類Dev

What is the Addr# type, and how can I use it?

分類Dev

What Docker command can I use after login to Docker registry?

分類Dev

What is a more accurate algorithm I can use to calculate the sine of a number?

分類Dev

What tools and techniques can I use to make GTK themes?

分類Dev

What type can I use to represent the __Renderings field in a Glass model?

分類Dev

What kind of files I can use in GitHub Pages?

分類Dev

What language(s) can I use in LibreOffice for macro scripting?

分類Dev

What program can I use to convert text into binary numbers?

分類Dev

How can I track the time pods are waiting to start?

分類Dev

Can't see and use custom VCL style

分類Dev

Resource allocation to container in Kubernetes pods

分類Dev

Why can't I see gnome extensions?

Related 関連記事

  1. 1

    What is Kubernetes API analog for `kubectl auth can-i`

  2. 2

    how to use Kubernetes DNS for pods?

  3. 3

    Kubernetes can not list pods as user

  4. 4

    How can I see what processes are running?

  5. 5

    How can I use DevTools to see what font is being used in an SVG?

  6. 6

    what is the absolute path for kubernetes pods logs?

  7. 7

    How can I use this API?

  8. 8

    I have a REST endpoint exposed in JAVA that I need to invoke through Marklogic- What can be the Best Way?

  9. 9

    What are production uses for Kubernetes pods without an associated deployment?

  10. 10

    What WooCommerce API should I use on the server?

  11. 11

    What does the following JavaScript function do and what can I use it for?

  12. 12

    kubernetes pods stuck at containercreating

  13. 13

    kubernetes api: Failure 403 pods is forbidden: User "system:serviceaccount:default:journalbeat" cannot list resource "pods" in API group ""

  14. 14

    How can I see what is triggering a "transaction check vs depsolve" error?

  15. 15

    How can I see ChromeLogger output in the Postman console when debugging an API?

  16. 16

    What are Launchpad packaging recipes and how can I use them?

  17. 17

    What SQL command can i use to solve the following dilemma?

  18. 18

    What is the Addr# type, and how can I use it?

  19. 19

    What Docker command can I use after login to Docker registry?

  20. 20

    What is a more accurate algorithm I can use to calculate the sine of a number?

  21. 21

    What tools and techniques can I use to make GTK themes?

  22. 22

    What type can I use to represent the __Renderings field in a Glass model?

  23. 23

    What kind of files I can use in GitHub Pages?

  24. 24

    What language(s) can I use in LibreOffice for macro scripting?

  25. 25

    What program can I use to convert text into binary numbers?

  26. 26

    How can I track the time pods are waiting to start?

  27. 27

    Can't see and use custom VCL style

  28. 28

    Resource allocation to container in Kubernetes pods

  29. 29

    Why can't I see gnome extensions?

ホットタグ

アーカイブ