Skip to content

Commit 0709857

Browse files
committed
chore: add kube annotation for EndpointStrategy
1 parent 724dfff commit 0709857

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

consts/kube.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,14 @@ const (
6868
KubeAnnotationEndpointClusters = "yatai.ai/endpoint-clusters"
6969
KubeAnnotationEndpointWeight = "yatai.ai/endpoint-weight"
7070

71+
// Route to multi deployments from different clusters by priority order, priority is configured by user in yatai.ai/endpoint-clusters annotation
72+
// traffic will overflow to next cluster when traffic exceeds current cluster capacity
73+
KubeAnnotationEndpointStrategyOverflow = "overflow"
74+
// Route to multi deployments at weighted random or round robin, weights are configured by user in yatai.ai/endpoint-weight annotation
75+
KubeAnnotationEndpointStrategyWeightedRoundRobin = "wrr"
76+
// Route to multi deployments at weighted random, weights are applied as the ready replica number (default 1 if no ready replicas) automatically
77+
KubeAnnotationEndpointStrategyAuto = "auto"
78+
7179
KubeAnnotationPrometheusScrape = "prometheus.io/scrape"
7280
KubeAnnotationPrometheusPort = "prometheus.io/port"
7381
KubeAnnotationPrometheusPath = "prometheus.io/path"

0 commit comments

Comments
 (0)