You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: ServicePolicy defines the behaviours for the pods which have
25
+
the same priority class
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
+
properties:
41
+
avoidanceStrategy:
42
+
description: AvoidanceStrategy defines the avoidance strategy for
43
+
pods
44
+
properties:
45
+
allowEvict:
46
+
type: boolean
47
+
allowThrottle:
48
+
type: boolean
49
+
type: object
50
+
priorityClassName:
51
+
description: PriorityClassName is the priority class name used in
52
+
the pods.
53
+
type: string
54
+
resourceMutation:
55
+
description: ResourcetMutation defines if the service need to mutate
56
+
resource to expand resource
57
+
properties:
58
+
limitMutations:
59
+
items:
60
+
properties:
61
+
mutatingResourceName:
62
+
description: MutatingResourceName is the resource name mutate
63
+
type: string
64
+
resourceName:
65
+
description: ResourceName is the origin resource name which
66
+
to be mutated
67
+
enum:
68
+
- cpu
69
+
- memory
70
+
type: string
71
+
type: object
72
+
type: array
73
+
requestMutations:
74
+
items:
75
+
properties:
76
+
mutatingResourceName:
77
+
description: MutatingResourceName is the resource name mutate
78
+
type: string
79
+
resourceName:
80
+
description: ResourceName is the origin resource name which
81
+
to be mutated
82
+
enum:
83
+
- cpu
84
+
- memory
85
+
type: string
86
+
type: object
87
+
type: array
88
+
type: object
89
+
resourcePriority:
90
+
description: ResourcePriority defines the priority for various resources
91
+
properties:
92
+
cpuPriority:
93
+
description: CPUPriority define the cpu priority for the pods.
94
+
CPUPriority range [0,7], 0 is the highest level. When the cpu
95
+
resource is shortage, the low level pods would be throttled
96
+
format: int32
97
+
maximum: 7
98
+
minimum: 0
99
+
type: integer
100
+
memoryPriority:
101
+
description: MemoryPriority define the memory priority for the
102
+
pods. MemoryPriority range [0,7], 0 is the highest level When
103
+
the memory is shortage, the low level pods would priority be
104
+
killed
105
+
format: int32
106
+
maximum: 7
107
+
minimum: 0
108
+
type: integer
109
+
networkIOPriority:
110
+
description: NetworkIOPriority define the network IO priority
111
+
for the pods. NetworkIOPriority range [0,7], 0 is the highest
112
+
level. When the network device is busy, the low level pods would
113
+
be throttled
114
+
format: int32
115
+
maximum: 7
116
+
minimum: 0
117
+
type: integer
118
+
type: object
119
+
required:
120
+
- priorityClassName
121
+
type: object
122
+
status:
123
+
description: ServicePolicyStatus defines the desired status of ServicePolicy
0 commit comments