Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do container mount like '-v /path/a:/path:b' in kubeflow yaml component? #7522

Open
stevezkw1998 opened this issue Mar 20, 2024 · 1 comment

Comments

@stevezkw1998
Copy link

component.yaml

name: op_a
description: op_a

inputs:
  - { name: a, type: String }
  - { name: b, type: String }

implementation:
  container:
    image: xxx.com/op_a:latest
    command:
     .....

      - { inputValue: a }
      - { inputValue: b }

I want to do -v /path/a:/path:b as docker container can do in this kubeflow component
How can I conduct that?

@kubeflow-bot kubeflow-bot added this to To Do in Needs Triage Mar 20, 2024
@AbhijithGanesh
Copy link

Heyy @stevezkw1998 . To mount a volume in a notebook you can follow this:

apiVersion: kubeflow.org/v1alpha1
kind: PodDefault
metadata:
  name: add-gcp-secret
  namespace: MY_PROFILE_NAMESPACE
spec:
 selector:
  matchLabels:
    add-gcp-secret: "true"
 desc: "add gcp credential"
 volumeMounts:
 - name: secret-volume
   mountPath: /secret/gcp
 volumes:
 - name: secret-volume
   secret:
    secretName: gcp-secret

https://www.kubeflow.org/docs/components/notebooks/quickstart-guide/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants