forked from opendatahub-io/opendatahub-operator
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RHOAIENG-7919] add kserve-local-gateway Gateway and Service (opendat…
…ahub-io#1056) * This PR creates kserver-local-gateway Gateway and Service object. Jira: https://issues.redhat.com/browse/RHOAIENG-7919 ADR: opendatahub-io/architecture-decision-records#45 --------- Signed-off-by: jooho lee <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
components/kserve/resources/servicemesh/routing/istio-kserve-local-gateway.tmpl.yaml
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,18 @@ | ||
# This Gateway is used for KServe internal communication. Each InferenceService (ISVC) will update this Gateway, particularly by adding a Server that includes TLS settings, hosts, and port configurations. This Gateway is created by the OpenDataHub Operator as a feature, but it will not be managed by the OpenDataHub Operator after its creation. | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
name: kserve-local-gateway | ||
namespace: {{ .ControlPlane.Namespace }} | ||
spec: | ||
selector: | ||
knative: ingressgateway | ||
servers: | ||
- hosts: | ||
- 'default.host' | ||
port: | ||
name: https | ||
number: 8445 | ||
protocol: HTTPS | ||
tls: | ||
mode: ISTIO_MUTUAL |
16 changes: 16 additions & 0 deletions
16
components/kserve/resources/servicemesh/routing/kserve-local-gateway-svc.tmpl.yaml
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,16 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
experimental.istio.io/disable-gateway-port-translation: "true" | ||
name: kserve-local-gateway | ||
namespace: {{ .ControlPlane.Namespace }} | ||
spec: | ||
ports: | ||
- name: https | ||
protocol: TCP | ||
port: 443 | ||
targetPort: 8445 | ||
selector: | ||
knative: ingressgateway | ||
type: ClusterIP |