-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for GlobalTrafficPolicy priority processing (#249)
* Support for GlobalTrafficPolicy priority processing Signed-off-by: vjoshi3 <[email protected]> Co-authored-by: vjoshi3 <[email protected]>
- Loading branch information
1 parent
ff96faa
commit 1bffeaf
Showing
7 changed files
with
135 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apiVersion: admiral.io/v1alpha1 | ||
kind: GlobalTrafficPolicy | ||
metadata: | ||
name: gtp-service1 | ||
namespace: sample | ||
annotations: | ||
admiral.io/env: stage | ||
labels: | ||
identity: greeting | ||
priority: "1" #0 value or missing label represents no priority is set, any other value determines the processing priority | ||
spec: | ||
policy: | ||
- dnsPrefix: default # default is a keyword, alternatively you can use `env` (ex: stage) | ||
lbType: 1 #0 represents TOPOLOGY, 1 represents FAILOVER | ||
target: | ||
- region: us-west-2 | ||
weight: 80 | ||
- region: us-east-2 | ||
weight: 20 |