Skip to content
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 @@ -573,6 +573,12 @@ spec:
format: int64
minimum: 0
type: integer
softEvictionThreshold:
additionalProperties:
type: number
description: SoftEvictionThreshold soft eviction threshold
rate for reclaimed resources
type: object
thresholdMetToleranceDuration:
description: ThresholdMetToleranceDuration is the tolerance
duration before eviction.
Expand Down
4 changes: 4 additions & 0 deletions pkg/apis/config/v1alpha1/adminqos.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,10 @@ type ReclaimedResourcesEvictionConfig struct {
// +optional
EvictionThreshold map[v1.ResourceName]float64 `json:"evictionThreshold"`

// SoftEvictionThreshold soft eviction threshold rate for reclaimed resources
// +optional
SoftEvictionThreshold map[v1.ResourceName]float64 `json:"softEvictionThreshold"`

// GracePeriod is the grace period of reclaimed resources' eviction
// +kubebuilder:validation:Minimum=0
// +optional
Expand Down
10 changes: 10 additions & 0 deletions pkg/consts/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ const (
const (
PodAnnotationResourcePackageKey = "katalyst.kubewharf.io/resource_package"
)

const (
// PodAnnotationSoftEvictNotificationKey is a const variable for pod annotation about enable eviction notification
PodAnnotationSoftEvictNotificationKey = "katalyst.kubewharf.io/pod_soft_evict_notify"
)

const (
// PodAnnotationPodEvictScoreKey is a const variable for pod annotation about enable get eviction score from pod
PodAnnotationPodEvictScoreKey = "katalyst.kubewharf.io/pod_evict_score"
)