liveBook · Manning

Kubernetes cluster

As explained in Google Anthos in Action

A Kubernetes cluster is a set of coordinated computing nodes managed by Kubernetes to run containerized workloads and services.

A Kubernetes cluster is a unit for running and managing containerized workloads. Clusters may be deployed in Google Cloud, other clouds, on bare metal, or at the edge. Automated creation lowers the barrier to deployment, but administrators still need to understand how cluster components interact to troubleshoot failures; developers need to understand the resources and scheduling rules that govern their workloads. section 3.0 section 2.4.4 section 8.3.1

Separate a cluster’s architecture from decisions about where and how many clusters to run:

  • In a Google Distributed Cloud Edge deployment, the control plane runs in a GCP region, while physical worker nodes at the customer site are grouped into node pools. A zone is a failure domain; applications needing protection against zone failures must span multiple zones in the same region. section 8.3.1
  • Multiple smaller clusters, such as clusters per team, contrast with fewer larger clusters, such as separate Dev, Test, and Prod clusters. Choose according to deployment practices, geography, data-location requirements, and operational capacity rather than assuming one layout is best. section 11.1.1
  • Across a fleet, inspect location, type, labels, warnings, Kubernetes version, available CPU and memory, and enabled features. Plan routine logging, monitoring, upgrades, and scaling alongside workload deployment. section 2.4.4 section 5.7

Targeted rollout across local clusters

For restaurant clusters managed with Anthos Config Management, give each cluster a distinct registry name and labels for country, region, and rollout status. Define nonoverlapping ClusterSelectors for testers and non-testers, then annotate separate Deployments to send a newer image to testers and the established image elsewhere. A country selector can restrict a location-specific application to eligible clusters. Check selector overlap: otherwise two deployments intended for different groups can target the same cluster. section 11.3.3

---
kind: ClusterSelector
apiVersion: configmanagement.gke.io/v1
metadata:
 name: rollout-testers
spec:
 selector:
   matchLabels:
     is-rollout-tester: true
---
kind: ClusterSelector
apiVersion: configmanagement.gke.io/v1
metadata:
 name: non-testers
spec:
 selector:
   matchExpressions:
   - key: is-rollout-tester
     operator: DoesNotExist
---
kind: ClusterSelector
apiVersion: configmanagement.gke.io/v1
metadata:
 name: country-us
spec:
 selector:
   matchLabels:
     country: us

The ClusterSelector definitions show how label matches and a missing-label expression divide tester, non-tester, and country-specific clusters. section 11.3.3

A cluster is also a deployment destination: a Marketplace installation can select a GKE cluster and namespace before placing Elasticsearch there. After deployment, cluster-level CPU, memory, and disk information helps operators assess the result. Declarative fleet management can reduce repeated configuration work across on-premises and cloud clusters, but it does not replace understanding the underlying components. section 14.2.1 section 11.4 section 3.0

How Google Anthos in Action covers it

How deep it goes
Explains component roles, topology choices, fleet inspection, and targeted deployment; leaves manual cluster construction unworked.
Examples
Uses a mixed-provider fleet, restaurant-cluster rollout selectors, and a GKE Marketplace deployment of Elasticsearch.
What it assumes
Assumes familiarity with cloud or cluster operations; identifies public key infrastructure, Linux, networking, and Kubernetes as skills needed for manual creation.
What you can do after
Operate/configure it through fleet inspection, topology planning, monitoring, and label-based deployment targeting.
How it connects
Connects Kubernetes resources and scheduling with Anthos Config Management, ClusterSelectors, node pools, and availability zones.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.