You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@submarine.apache.org by "Wanqiang Ji (Jira)" <ji...@apache.org> on 2020/01/19 04:38:00 UTC
[jira] [Updated] (SUBMARINE-347) Fix the job spec parser issue and
refine the TF job on K8s document
[ https://issues.apache.org/jira/browse/SUBMARINE-347?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wanqiang Ji updated SUBMARINE-347:
----------------------------------
Summary: Fix the job spec parser issue and refine the TF job on K8s document (was: Refine the TF job on K8s document of submarine server)
> Fix the job spec parser issue and refine the TF job on K8s document
> -------------------------------------------------------------------
>
> Key: SUBMARINE-347
> URL: https://issues.apache.org/jira/browse/SUBMARINE-347
> Project: Apache Submarine
> Issue Type: Improvement
> Components: Doc
> Reporter: Zhankun Tang
> Assignee: Wanqiang Ji
> Priority: Major
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 1. When trying to deploy the TF-operator following the document:
> {code:java}
> $ kubectl kustomize ./dev-support/k8s/tfjob/operator | kubectl apply -f -
> clusterrole.rbac.authorization.k8s.io/kubeflow-tfjobs-admin created
> clusterrole.rbac.authorization.k8s.io/kubeflow-tfjobs-edit created
> clusterrole.rbac.authorization.k8s.io/kubeflow-tfjobs-view created
> clusterrole.rbac.authorization.k8s.io/tf-job-operator created
> clusterrolebinding.rbac.authorization.k8s.io/tf-job-operator created
> Error from server (NotFound): error when creating "STDIN": namespaces "submarine" not found
> Error from server (NotFound): error when creating "STDIN": namespaces "submarine" not found
> Error from server (NotFound): error when creating "STDIN": namespaces "submarine" not found
> Error from server (NotFound): error when creating "STDIN": namespaces "submarine" not found{code}
> We should mention this in the document:
> {code:java}
> kubectl create namespace submarine{code}
> 2. The curl command is not correct. The line break "\" is not working. And the "`" character should be "'".
> {code:java}
> curl -H "Content-Type: application/json" --request POST --data '{"name":"mnist","librarySpec":{"name":"TensorFlow","version":"2.1.0","image":"gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0","cmd":"python /var/tf_mnist/mnist_with_summaries.py --log_dir=/train/log --learning_rate=0.01 --batch_size=150","envVars":{"ENV_1":"ENV1"}},"submitterSpec":{"type":"k8s","configPath":null,"namespace":"submarine","kind":"TFJob","apiVersion":"kubeflow.org/v1"},"taskSpecs":{"Ps":{"name":"tensorflow","replicas":2,"resources":"cpu=4,memory=2048M,nvidia.com/gpu=1"},"Worker":{"name":"tensorflow","replicas":2,"resources":"cpu=4,memory=2048M"}}}' http://127.0.0.1:8080/api/v1/jobs
> {code}
> 3. We should have a note for user to check the running job in document. Like "kubectl get TFJob". etc.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@submarine.apache.org
For additional commands, e-mail: dev-help@submarine.apache.org