You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
4.0 KiB

  1. ---
  2. apiVersion: apiextensions.k8s.io/v1
  3. kind: CustomResourceDefinition
  4. metadata:
  5. annotations:
  6. api-approved.kubernetes.io: https://github.com/kubernetes-sigs/scheduler-plugins/pull/50
  7. controller-gen.kubebuilder.io/version: v0.11.1
  8. creationTimestamp: null
  9. name: podgroups.scheduling.x-k8s.io
  10. spec:
  11. group: scheduling.x-k8s.io
  12. names:
  13. kind: PodGroup
  14. listKind: PodGroupList
  15. plural: podgroups
  16. shortNames:
  17. - pg
  18. - pgs
  19. singular: podgroup
  20. scope: Namespaced
  21. versions:
  22. - name: v1alpha1
  23. schema:
  24. openAPIV3Schema:
  25. description: PodGroup is a collection of Pod; used for batch workload.
  26. properties:
  27. apiVersion:
  28. description: 'APIVersion defines the versioned schema of this representation
  29. of an object. Servers should convert recognized schemas to the latest
  30. internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
  31. type: string
  32. kind:
  33. description: 'Kind is a string value representing the REST resource this
  34. object represents. Servers may infer this from the endpoint the client
  35. submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
  36. type: string
  37. metadata:
  38. type: object
  39. spec:
  40. description: Specification of the desired behavior of the pod group.
  41. properties:
  42. minMember:
  43. description: MinMember defines the minimal number of members/tasks
  44. to run the pod group; if there's not enough resources to start all
  45. tasks, the scheduler will not start anyone.
  46. format: int32
  47. type: integer
  48. minResources:
  49. additionalProperties:
  50. anyOf:
  51. - type: integer
  52. - type: string
  53. pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
  54. x-kubernetes-int-or-string: true
  55. description: MinResources defines the minimal resource of members/tasks
  56. to run the pod group; if there's not enough resources to start all
  57. tasks, the scheduler will not start anyone.
  58. type: object
  59. scheduleTimeoutSeconds:
  60. description: ScheduleTimeoutSeconds defines the maximal time of members/tasks
  61. to wait before run the pod group;
  62. format: int32
  63. type: integer
  64. type: object
  65. status:
  66. description: Status represents the current information about a pod group.
  67. This data may not be up to date.
  68. properties:
  69. failed:
  70. description: The number of pods which reached phase Failed.
  71. format: int32
  72. type: integer
  73. occupiedBy:
  74. description: OccupiedBy marks the workload (e.g., deployment, statefulset)
  75. UID that occupy the podgroup. It is empty if not initialized.
  76. type: string
  77. phase:
  78. description: Current phase of PodGroup.
  79. type: string
  80. running:
  81. description: The number of actively running pods.
  82. format: int32
  83. type: integer
  84. scheduleStartTime:
  85. description: ScheduleStartTime of the group
  86. format: date-time
  87. type: string
  88. succeeded:
  89. description: The number of pods which reached phase Succeeded.
  90. format: int32
  91. type: integer
  92. type: object
  93. type: object
  94. served: true
  95. storage: true
  96. subresources:
  97. status: {}