Skip to content

Commit 5014c04

Browse files
committed
more detailed introduction
1 parent 142115d commit 5014c04

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkg/consts/qos.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,15 @@ const (
6262
PodAnnotationNetworkEnhancementAffinityRestrictedTrue = "true"
6363
)
6464

65-
// const variables for pod annotations about qos level enhancement for micro-topology level inter-pod affinity
66-
65+
// const variables for pod annotations about qos level enhancement for micro-topology level inter-pod affinity,
66+
// PodAnnotationMicroTopologyRequired & Preferred stands for hard & soft affinity requirements,
67+
// PodAnnotationMicroTopologyAffinityNUMA & Socket stands for topology zone of seletor,
68+
// PodAnnotationMicroTopologyAffinityDefaultZone means the default topology zone is NUMA.
69+
// example of api is:
70+
//
71+
// "katalyst.kubewharf.io/microtopology_antiaffinity": '{
72+
// "required": [{"matchLabels": {"labelKey": "labelValue"}, "zone":"numa"}]
73+
// }'
6774
const (
6875
PodAnnotationMicroTopologyInterPodAffinity = "katalyst.kubewharf.io/microtopology_affinity"
6976
PodAnnotationMicroTopologyInterPodAntiAffinity = "katalyst.kubewharf.io/microtopology_antiaffinity"

0 commit comments

Comments
 (0)