apiVersion: "kubeflow.org/v1" kind: "TFJob" metadata: name: "distributed-tensorflow-job" spec: tfReplicaSpecs: PS: replicas: 2 restartPolicy: Never template: metadata: annotations: sidecar.istio.io/inject: "false" spec: containers: - name: tensorflow image: gcr.io/kubeflow-ci/tf-dist-mnist-test:1.0 Worker: replicas: 4 restartPolicy: Never template: metadata: annotations: sidecar.istio.io/inject: "false" spec: containers: - name: tensorflow image: gcr.io/kubeflow-ci/tf-dist-mnist-test:1.0