Skip to content

Commit

Permalink
more detailed introduction
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxiaoqi932 committed Dec 12, 2023
1 parent 8874af1 commit ca91860
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkg/consts/qos.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,15 @@ const (
PodAnnotationNetworkEnhancementAffinityRestrictedTrue = "true"
)

// const variables for pod annotations about qos level enhancement for micro-topology level inter-pod affinity

// const variables for pod annotations about qos level enhancement for micro-topology level inter-pod affinity,
// PodAnnotationMicroTopologyRequired & Preferred stands for hard & soft affinity requirements,
// PodAnnotationMicroTopologyAffinityNUMA & Socket stands for topology zone of seletor,
// PodAnnotationMicroTopologyAffinityDefaultZone means the default topology zone is NUMA.
// example of api is:
//
// "katalyst.kubewharf.io/microtopology_antiaffinity": '{
// "required": [{"matchLabels": {"labelKey": "labelValue"}, "zone":"numa"}]
// }'
const (
PodAnnotationMicroTopologyInterPodAffinity = "katalyst.kubewharf.io/microtopology_affinity"
PodAnnotationMicroTopologyInterPodAntiAffinity = "katalyst.kubewharf.io/microtopology_antiaffinity"
Expand Down

0 comments on commit ca91860

Please sign in to comment.