forked from kubeflow/kubeflow
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from bartoszmajsak/enable_ossm
feat: disables features not needed for Istio deployments
- Loading branch information
Showing
22 changed files
with
1,343 additions
and
336 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
components/notebook-controller/config/overlays/service-mesh/cert-secret.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,9 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: odh-dashboard-cert | ||
namespace: odh-notebook-controller-system | ||
type: kubernetes.io/tls | ||
data: | ||
tls.crt: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURIVENDQWdXZ0F3SUJBZ0lVZlpOenNGV29JRkxPYXB3aTNwMkx4VDNIWC9Bd0RRWUpLb1pJaHZjTkFRRUwKQlFBd0hqRWNNQm9HQTFVRUF3d1RZMkV1WVhCd2N5MWpjbU11ZEdWemRHbHVaekFlRncweU16QXlNRE14TkRReQpNVGxhRncweU5EQXlNRE14TkRReU1UbGFNQnN4R1RBWEJnTlZCQU1NRUdGd2NITXRZM0pqTG5SbGMzUnBibWN3CmdnRWlNQTBHQ1NxR1NJYjNEUUVCQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURCYmJ6Ritxa3lFZ0pUak1xSENHZTgKdnkzcTgwaTZPa1ByMlZmWm04THdxT3BJcDJxOWduZFF4MCtqaDI0UjhqLzgwQmVxMEJtc1FFNCsyTURXcmUzdQpkY2pBTVlSZWN2aE5DOVduQmlSZy9USVZYNEQya0hnV05XSS8zMDI4elVEZmlhMm1NbnFwNWFaVWUwcitndm5SClRRaFdUR0UrMStETTYrNUZySzB0NUhMeTZLLzJvRTBmb09SUG9wNzZyeEEzU3J6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
components/notebook-controller/config/overlays/service-mesh/gateway-route.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,19 @@ | ||
kind: Route | ||
apiVersion: route.openshift.io/v1 | ||
metadata: | ||
name: opendatahub-odh-gateway | ||
namespace: istio-system | ||
labels: | ||
maistra.io/gateway-name: odh-gateway | ||
maistra.io/gateway-namespace: odh-notebook-controller-system | ||
spec: | ||
host: opendatahub.apps-crc.testing | ||
to: | ||
kind: Service | ||
name: istio-ingressgateway | ||
weight: 100 | ||
port: | ||
targetPort: https | ||
tls: | ||
termination: passthrough | ||
wildcardPolicy: None |
18 changes: 18 additions & 0 deletions
18
components/notebook-controller/config/overlays/service-mesh/gateway.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 @@ | ||
apiVersion: networking.istio.io/v1beta1 | ||
kind: Gateway | ||
metadata: | ||
name: odh-gateway | ||
namespace: odh-notebook-controller-system | ||
spec: | ||
selector: | ||
istio: ingressgateway | ||
servers: | ||
- port: | ||
number: 443 | ||
name: https | ||
protocol: HTTPS | ||
tls: | ||
mode: SIMPLE | ||
credentialName: odh-dashboard-cert | ||
hosts: | ||
- "*" |
48 changes: 48 additions & 0 deletions
48
components/notebook-controller/config/overlays/service-mesh/kustomization.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,48 @@ | ||
--- | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ../openshift | ||
- gateway.yaml | ||
- gateway-route.yaml | ||
- cert-secret.yaml | ||
- smm.yaml | ||
namespace: odh-notebook-controller-system | ||
|
||
configMapGenerator: | ||
- name: config | ||
behavior: merge | ||
literals: | ||
- USE_ISTIO=true | ||
- ISTIO_GATEWAY=odh-notebook-controller-system/odh-gateway | ||
|
||
patchesJson6902: | ||
- patch: |- | ||
- op: replace | ||
path: /metadata/namespace | ||
value: istio-system | ||
target: | ||
group: route.openshift.io | ||
kind: Route | ||
version: v1 | ||
namespace: odh-notebook-controller-system | ||
name: opendatahub-odh-gateway | ||
- patch: |- | ||
- op: replace | ||
path: /metadata/namespace | ||
value: istio-system | ||
target: | ||
kind: Secret | ||
version: v1 | ||
namespace: odh-notebook-controller-system | ||
name: odh-dashboard-cert | ||
- patch: |- | ||
- op: replace | ||
path: /spec/controlPlaneRef/namespace | ||
value: istio-system | ||
target: | ||
group: maistra.io | ||
version: v1 | ||
kind: ServiceMeshMember | ||
name: default | ||
8 changes: 8 additions & 0 deletions
8
components/notebook-controller/config/overlays/service-mesh/smm.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,8 @@ | ||
apiVersion: maistra.io/v1 | ||
kind: ServiceMeshMember | ||
metadata: | ||
name: default | ||
spec: | ||
controlPlaneRef: | ||
namespace: odh-notebook-controller-system | ||
name: custom |
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
Oops, something went wrong.