Skip to content

Commit

Permalink
Merge pull request #550 from HumairAK/enable_kfp_ui_artifacts
Browse files Browse the repository at this point in the history
enable kfp ui to retrieve artifacts.
  • Loading branch information
HumairAK authored Jan 21, 2024
2 parents 3f5369f + efc481f commit 368d935
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/internal/minio/default/service.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ spec:
port: 9000
protocol: TCP
targetPort: 9000
# Work around to enable kfp ui to fetch artifacts for viewer
# S3 generic endpoint for kfp UI only supports rest port
# since default minio is http, and we disable ssl via "AWS_SSL" env var
# https://github.com/opendatahub-io/data-science-pipelines/blob/83d7e719d08c73c2c535722b66b77cdf0cb4cd08/frontend/server/handlers/artifacts.ts#L104
- name: kfp-ui-http
port: 80
protocol: TCP
targetPort: 9000
selector:
app: minio-{{.Name}}
component: data-science-pipelines
18 changes: 18 additions & 0 deletions config/internal/mlpipelines-ui/deployment.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ spec:
value: ds-pipeline-metadata-envoy-{{.Name}}
- name: METADATA_ENVOY_SERVICE_SERVICE_PORT
value: "9090"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: {{.ObjectStorageConnection.CredentialsSecret.SecretName}}
key: {{.ObjectStorageConnection.CredentialsSecret.AccessKey}}
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: {{.ObjectStorageConnection.CredentialsSecret.SecretName}}
key: {{.ObjectStorageConnection.CredentialsSecret.SecretKey}}
- name: AWS_REGION
value: {{.ObjectStorageConnection.Region}}
- name: AWS_S3_ENDPOINT
value: {{.ObjectStorageConnection.Host}}
{{ if eq .ObjectStorageConnection.Scheme "http"}}
- name: AWS_SSL
value: "false"
{{ end }}
image: {{.MlPipelineUI.Image}}
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down
2 changes: 2 additions & 0 deletions config/samples/dspa_simple_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ spec:
image: 'quay.io/opendatahub/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance'
mlpipelineUI:
image: quay.io/opendatahub/ds-pipelines-frontend:latest
workflowController:
deploy: true
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ spec:
value: ds-pipeline-metadata-envoy-testdsp2
- name: METADATA_ENVOY_SERVICE_SERVICE_PORT
value: "9090"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: "accesskey"
name: "ds-pipeline-s3-testdsp2"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: "secretkey"
name: "ds-pipeline-s3-testdsp2"
- name: AWS_REGION
value: "minio"
- name: AWS_S3_ENDPOINT
value: "minio-testdsp2.default.svc.cluster.local"
- name: AWS_SSL
value: "false"
image: frontend:test2
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ spec:
value: ds-pipeline-metadata-envoy-testdsp4
- name: METADATA_ENVOY_SERVICE_SERVICE_PORT
value: "9090"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: "accesskey"
name: "ds-pipeline-s3-testdsp4"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: "secretkey"
name: "ds-pipeline-s3-testdsp4"
- name: AWS_REGION
value: "minio"
- name: AWS_S3_ENDPOINT
value: "minio-testdsp4.default.svc.cluster.local"
- name: AWS_SSL
value: "false"
image: this-frontend-image-from-cr-should-be-used:test4
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ spec:
value: ds-pipeline-metadata-envoy-testdsp5
- name: METADATA_ENVOY_SERVICE_SERVICE_PORT
value: "9090"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: "accesskey"
name: "ds-pipeline-s3-testdsp5"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: "secretkey"
name: "ds-pipeline-s3-testdsp5"
- name: AWS_REGION
value: "minio"
- name: AWS_S3_ENDPOINT
value: "minio-testdsp5.default.svc.cluster.local"
- name: AWS_SSL
value: "false"
image: frontend:test5
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,22 @@ spec:
value: ds-pipeline-metadata-envoy-testdsp7
- name: METADATA_ENVOY_SERVICE_SERVICE_PORT
value: "9090"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
key: "accesskey"
name: "mlpipeline-minio-artifact"
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
key: "secretkey"
name: "mlpipeline-minio-artifact"
- name: AWS_REGION
value: "minio"
- name: AWS_S3_ENDPOINT
value: "minio-testdsp7.default.svc.cluster.local"
- name: AWS_SSL
value: "false"
image: frontend:test7
imagePullPolicy: IfNotPresent
livenessProbe:
Expand Down

0 comments on commit 368d935

Please sign in to comment.