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 run in stand-alone mode #826

Closed
dailong opened this issue Sep 7, 2018 · 4 comments
Closed

How to run in stand-alone mode #826

dailong opened this issue Sep 7, 2018 · 4 comments

Comments

@dailong
Copy link

dailong commented Sep 7, 2018

How to run in stand-alone mode ,in other words, no ps and worker in v1alpha2 api?

@gaocegege
Copy link
Member

You can create just one worker, and use this pod to train locally.

@dailong
Copy link
Author

dailong commented Sep 7, 2018

Thank you for your reply. like this? @gaocegege

apiVersion: "kubeflow.org/v1alpha2"
kind: "TFJob"
metadata:
  name: "dist-mnist-sigle"
  namespace: "default"
spec:
  tfReplicaSpecs:
    Worker:
      replicas: 1
      restartPolicy: OnFailure
      template:
        spec:
          containers:
            - name: tensorflow
              image: kubeflow/tf-dist-mnist-test:1.0
              env:
              - name: TEST_TMPDIR
                value: /training
              command: ["python /training/main.py"]
              volumeMounts:
              - name: mnist-data
                mountPath: /training
          volumes:
            - name: mnist-data
              persistentVolumeClaim:
                claimName: mnist-my-a

@gaocegege
Copy link
Member

Yeah, and you do not need to write replicas: 1 since the default value for replicas is 1

@gaocegege
Copy link
Member

I am going to close the issue. If you have any question please leave comments here.

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

No branches or pull requests

2 participants