-
Notifications
You must be signed in to change notification settings - Fork 874
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add session affinity to k8s TS (#2519)
* feat: add session affinity to k8s TS Signed-off-by: jagadeesh <[email protected]> * fix spell check Signed-off-by: jagadeesh <[email protected]> * fix docs Signed-off-by: jagadeesh <[email protected]> --------- Signed-off-by: jagadeesh <[email protected]> Co-authored-by: Geeta Chauhan <[email protected]> Co-authored-by: Ankith Gunapal <[email protected]>
- Loading branch information
1 parent
448aad3
commit d47b14d
Showing
9 changed files
with
132 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: DestinationRule | ||
metadata: | ||
name: torchserve-dr | ||
spec: | ||
host: torchserve.default.svc.cluster.local # <ts-service-name>.<namespace>.svc.cluster.local | ||
trafficPolicy: | ||
loadBalancer: | ||
consistentHash: | ||
# httpHeaderName: x-user | ||
httpCookie: | ||
name: session_id | ||
ttl: 60s |
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,14 @@ | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
name: torchserve-gw | ||
spec: | ||
selector: | ||
istio: ingressgateway | ||
servers: | ||
- hosts: | ||
- '*' | ||
port: | ||
name: http | ||
number: 80 | ||
protocol: HTTP |
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,36 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: torchserve-vs | ||
spec: | ||
hosts: | ||
- "*" | ||
gateways: | ||
- torchserve-gw | ||
http: | ||
- match: | ||
- uri: | ||
prefix: /metrics | ||
route: | ||
- destination: | ||
host: torchserve.default.svc.cluster.local | ||
port: | ||
number: 8082 | ||
- match: | ||
- headers: | ||
protocol: | ||
exact: REST | ||
route: | ||
- destination: | ||
host: torchserve.default.svc.cluster.local # <ts-service-name>.<namespace>.svc.cluster.local | ||
port: | ||
number: 8080 | ||
- match: | ||
- headers: | ||
protocol: | ||
exact: gRPC | ||
route: | ||
- destination: | ||
host: torchserve.default.svc.cluster.local # <ts-service-name>.<namespace>.svc.cluster.local | ||
port: | ||
number: 7070 |
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 |
---|---|---|
|
@@ -1065,6 +1065,9 @@ ActionSLAM | |
statins | ||
ci | ||
chatGPT | ||
accessLogFile | ||
istioctl | ||
meshConfig | ||
baseimage | ||
cuDNN | ||
Xformer | ||
|
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