example.yaml 784 B

12345678910111213141516171819202122232425262728293031
  1. apiVersion: "kubeflow.org/v1alpha2"
  2. kind: "TFJob"
  3. metadata:
  4. name: "example-job"
  5. spec:
  6. replicaSpecs:
  7. - replicas: 1
  8. tfReplicaType: MASTER
  9. template:
  10. spec:
  11. containers:
  12. - image: gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff
  13. name: tensorflow
  14. restartPolicy: OnFailure
  15. - replicas: 1
  16. tfReplicaType: WORKER
  17. template:
  18. spec:
  19. containers:
  20. - image: gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff
  21. name: tensorflow
  22. restartPolicy: OnFailure
  23. - replicas: 2
  24. tfReplicaType: PS
  25. template:
  26. spec:
  27. containers:
  28. - image: gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff
  29. name: tensorflow
  30. restartPolicy: OnFailure