Skip to content

Commit

Permalink
mount object store creds in ml-pipeline-ui deployment (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagar-ajay authored Oct 19, 2023
1 parent 8c1d0c1 commit cea120b
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubeflow/overlays/ntnx/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ configMapGenerator:
behavior: replace
files:
- config
- name: ml-pipeline-ui-configmap
behavior: replace
files:
- viewer-pod-template.json

secretGenerator:
- name: mlpipeline-minio-artifact
Expand Down
33 changes: 33 additions & 0 deletions kubeflow/overlays/ntnx/ntnx-config-patch.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ml-pipeline-ui
spec:
template:
metadata:
labels:
app: ml-pipeline-ui
spec:
volumes:
- name: config-volume
configMap:
name: ml-pipeline-ui-configmap
containers:
- name: ml-pipeline-ui
env:
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: mlpipeline-minio-artifact
key: accesskey
- name: AWS_SECRET_ACCESS_KEY
valueFrom:
secretKeyRef:
name: mlpipeline-minio-artifact
key: secretkey
- name: AWS_S3_ENDPOINT
valueFrom:
configMapKeyRef:
name: pipeline-install-config
key: objStoreHost
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ml-pipeline
spec:
Expand Down
28 changes: 28 additions & 0 deletions kubeflow/overlays/ntnx/viewer-pod-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"spec": {
"containers": [
{
"env": [
{
"name": "AWS_ACCESS_KEY_ID",
"valueFrom": {
"secretKeyRef": {
"name": "mlpipeline-minio-artifact",
"key": "accesskey"
}
}
},
{
"name": "AWS_SECRET_ACCESS_KEY",
"valueFrom": {
"secretKeyRef": {
"name": "mlpipeline-minio-artifact",
"key": "secretkey"
}
}
}
]
}
]
}
}

0 comments on commit cea120b

Please sign in to comment.