Skip to content

Instantly share code, notes, and snippets.

@sub-mod
Created January 10, 2018 17:56
Show Gist options
  • Save sub-mod/555591ae9bcb9f017b9b4fc918a8c5ba to your computer and use it in GitHub Desktop.
Save sub-mod/555591ae9bcb9f017b9b4fc918a8c5ba to your computer and use it in GitHub Desktop.
Sample Distributed TfJob
{
"apiVersion": "tensorflow.org/v1alpha1",
"kind": "TfJob",
"metadata": {
"name": "distributed-job"
},
"spec": {
"replicaSpecs": [
{
"replicas": 1,
"tfReplicaType": "MASTER",
"template": {
"spec": {
"containers": [
{
"image": "gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff",
"name": "tensorflow"
}
],
"restartPolicy": "OnFailure"
}
}
},
{
"replicas": 1,
"tfReplicaType": "WORKER",
"template": {
"spec": {
"containers": [
{
"image": "gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff",
"name": "tensorflow"
}
],
"restartPolicy": "OnFailure"
}
}
},
{
"replicas": 2,
"tfReplicaType": "PS"
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment