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 save the model on PVC #850

Closed
Suozz opened this issue Oct 24, 2018 · 7 comments
Closed

how to save the model on PVC #850

Suozz opened this issue Oct 24, 2018 · 7 comments

Comments

@Suozz
Copy link

Suozz commented Oct 24, 2018

I use this yaml file to init a tfjob. But it shows errors on the 32rd line code

> _apiVersion: "kubeflow.org/v1alpha2"
> kind: "TFJob"
> metadata:
>   name: "example-job1"
> spec:
>   tfReplicaSpecs:
>     Master:
>       replicas: 1
>       restartPolicy: Never
>       template:
>         spec:
>           containers:
>             - name: tensorflow
>               image: 192.168.9.155:5000/szz/tfjobtest:1.3
>     Worker:
>       replicas: 1
>       restartPolicy: Never
>       template:
>         spec:
>           containers:
>             - name: tensorflow
>               image: 192.168.9.155:5000/szz/tfjobtest:1.3
>     PS:
>       replicas: 2
>       restartPolicy: Never
>       template:
>         spec:
>           containers:
>             - name: tensorflow
>               image: 192.168.9.155:5000/szz/tfjobtest:1.3
>           volumes:
>             - name: mypd
>                persistentVolumeClaim:
>                  claimName: nfs-kubeflow_

the error is error: error parsing tfjob.yaml: error converting YAML to JSON: yaml: line 32: mapping values are not allowed in this context

@hougangliu
Copy link
Member

your yaml format is wrong indeed. Please keep name: mypd and persistentVolumeClaim: same indentation.

@hougangliu
Copy link
Member

/close

@k8s-ci-robot
Copy link

@hougangliu: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@gaocegege
Copy link
Member

@Suozz Does it work for you?

@gaocegege
Copy link
Member

I am closing the issue, feel free to leave comments if you have any question.

@hougangliu
Copy link
Member

/close

@k8s-ci-robot
Copy link

@hougangliu: Closing this issue.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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

No branches or pull requests

4 participants