liveBook · Manning

Kubeflow training operator

As explained in Distributed Machine Learning Patterns

The Kubeflow Training Operator is a Kubernetes operator that manages distributed and nondistributed machine learning training jobs through custom resources.

Kubeflow Training Operator is a Kubernetes operator for running distributed and nondistributed machine-learning jobs. It exposes Kubernetes custom resources for frameworks and job types including TensorFlow, PyTorch, Apache MXNet, XGBoost, and MPI, allowing workloads to be created with kubectl like built-in Kubernetes resources. section 8.3 section 8.3.1

A typical local-cluster workflow is:

  • Create and activate a dedicated kubeflow namespace. section 8.3.1
  • Apply manifests that install the Training Operator and related tools. section 8.3.1

Distributed TensorFlow job

A TFJob declares two Worker replicas running a TensorFlow MNIST container. The operator creates the corresponding worker Pods, which can be observed through the TFJob and Pod listings; failed workers use an OnFailure restart policy.

How Distributed Machine Learning Patterns covers it

How deep it goes
Defines custom resources, installs the operator, submits a TFJob, and checks Pods; it defers workflow orchestration.
Examples
Uses a local cluster, kubeflow namespace, TFJob manifest, two TensorFlow workers, and kubectl job and Pod listings.
What it assumes
Assumes an existing local Kubernetes cluster and teaches Kubernetes custom resources before using TFJob objects.
What you can do after
Operate/configure distributed TensorFlow training on a local Kubernetes cluster using kubectl and TFJob manifests.
How it connects
Connects Kubernetes custom resources, kubectl, TensorFlow, PyTorch, Apache MXNet, XGBoost, MPI jobs, and Argo Workflows.

Also explained in

Compare how 2 books explain Kubeflow training operator →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Distributed Machine Learning Patterns. The section links point to the parts of the book it draws on.