liveBook · Manning

Computer cluster

As explained in Distributed Machine Learning Patterns

A cluster is a group of connected computing machines managed to execute workloads as a coordinated resource.

A computer cluster coordinates connected machines as a shared execution environment. In Kubernetes, the cluster supplies nodes, namespaces, and deployable Pods for running workloads; local development can bootstrap a single-node or multinode cluster with k3d and k3s. section 8.2.1

A practical cluster workflow includes:

  • Create a local cluster named distml with k3d, using a specified k3s image. section 8.2.1
  • Inspect node readiness, roles, versions, labels, operating system, architecture, and container runtime with kubectl. section 8.2.1
  • Create a namespace to isolate project resources, then switch contexts and namespaces when working across environments. section 8.2.1
  • Deploy a Pod from YAML and inspect its status, logs, and resolved configuration. section 8.2.1

A minimal workload path

Create the distml cluster, activate its basics namespace, and submit a whalesay Pod. The Pod runs a container command, completes, and exposes output through kubectl logs; its effective configuration can be examined as raw YAML. section 8.2.1

Listing 8.21 Creating a local Kubernetes cluster
> k3d cluster create distml --image rancher/k3s:v1.25.3-rc3-k3s1

Use the command listing to bootstrap a local Kubernetes cluster before creating namespaces and workloads. section 8.2.1

How Distributed Machine Learning Patterns covers it

How deep it goes
Explains cluster setup through nodes, namespaces, contexts, and Pods, then stops short of detailed cluster administration.
Examples
Uses a local k3d/k3s cluster, the basics namespace, and a whalesay Pod inspected through kubectl.
What it assumes
Assumes basic command-line use while teaching Kubernetes cluster, namespace, context, node, and Pod concepts from the ground up.
What you can do after
Operate/configure a local Kubernetes cluster, create namespaces, deploy Pods, and inspect their status, logs, and YAML.
How it connects
Connects Kubernetes clusters with nodes, namespaces, contexts, Pods, Kubeflow, and Argo Workflows.

Also explained in

Compare how 8 books explain computer cluster →

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.