Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PodQOS and NodeQOS API #61

Merged
merged 2 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,22 @@ metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.7.0
creationTimestamp: null
name: nodeqosensurancepolicies.ensurance.crane.io
name: nodeqoss.ensurance.crane.io
spec:
group: ensurance.crane.io
names:
kind: NodeQOSEnsurancePolicy
listKind: NodeQOSEnsurancePolicyList
plural: nodeqosensurancepolicies
kind: NodeQOS
listKind: NodeQOSList
plural: nodeqoss
shortNames:
- nep
singular: nodeqosensurancepolicy
- nq
singular: nodeqos
scope: Cluster
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: NodeQOSEnsurancePolicy is the Schema for the nodeqosensurancepolicies
API
description: NodeQOS is the Schema for the nodeqos API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
Expand All @@ -37,9 +36,86 @@ spec:
metadata:
type: object
spec:
description: NodeQOSEnsurancePolicySpec defines the desired status of
NodeQOSEnsurancePolicy
description: NodeQOSSpec defines the desired status of NodeQOS
properties:
elasticCpuLimit:
description: ElasticCpuLimit is the cpu limit for workloads using
elastic cpu in the node
properties:
elasticCoreCpuLimit:
description: Limit the amount of single core CPU that can be used
by workloads which use extended resource
items:
properties:
coreNum:
type: string
percent:
format: int64
type: integer
type: object
type: array
elasticCoreCpuLimitPeriod:
description: Limit the amount of single core CPU and its corresponding
time that can be used by workloads which use extended resource
items:
properties:
coreNum:
type: string
offlineCpuLimit:
type: string
percent:
format: int64
type: integer
type: object
type: array
elasticCpuAvoidance:
description: Workloads which use extended resource only run on
CPUs where high priority tasks are not running
properties:
enable:
type: boolean
type: object
elasticNodeCpuLimit:
description: ElasticNodeCpuLimit is the total cpu usage limit
for the workloads which use extended resource in node Suppress
the workloads which use extended resource when the CPU usage
of the node exceedes ElasticNodeCpuLimit
properties:
percent:
format: int64
type: integer
type: object
type: object
memLimit:
description: MemoryLimit is the mem limit in the node
properties:
pageCacheLimitGlobal:
type: boolean
pageCacheLimitRetryTimes:
format: int64
type: integer
type: object
netLimits:
description: NetLimits is the net IO limit in the node
properties:
rxBpsMax:
format: int64
type: integer
rxBpsMin:
format: int64
type: integer
txBpsMax:
format: int64
type: integer
txBpsMin:
format: int64
type: integer
required:
- rxBpsMax
- rxBpsMin
- txBpsMax
- txBpsMin
type: object
nodeQualityProbe:
description: NodeQualityProbe defines the way to probe a node
properties:
Expand Down Expand Up @@ -102,10 +178,9 @@ spec:
format: int32
type: integer
type: object
objectiveEnsurances:
description: ObjectiveEnsurances is an array of ObjectiveEnsurance
rules:
description: Rules is an array of Rules and its corresponding action
items:
description: ObjectiveEnsurance defines the policy that
properties:
actionName:
description: Avoidance action to be executed when the rule triggered
Expand Down
253 changes: 0 additions & 253 deletions artifacts/deploy/ensurance.crane.io_podqosensurancepolicies.yaml

This file was deleted.

Loading