Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes scalability: Federation & Cluster API

Katie Gamanji
September 27, 2019
130

Kubernetes scalability: Federation & Cluster API

Kubernetes scalability: Federation & Cluster API for Cloud Native London conference 2019

Katie Gamanji

September 27, 2019
Tweet

Transcript

  1. Condé Nast International has set the benchmark for print and

    digital publishing with a heritage of more than 110 years.
  2. Federation v2 Mechanism for managing applications and services in multiple

    Kubernetes clusters tracked by the Kubernetes cluster registry.
  3. Federation v2 SIG multicluster: • Federation ◦ v1 - deprecated

    ◦ v2 (alpha) - requires v1.13 • Cluster registry ◦ maintain list of clusters and associated metadata
  4. Federation v2 Cluster placement • targeted clusters by the federation

    Configuration overrides • patches to federated resources
  5. Federation v2 Cluster Placement • clusters spec: placement: clusters: -

    name: cluster2 - name: cluster1 • clusterSelector spec: clusterSelector: matchLabels: region: eu-central-1
  6. Federation v2 Configuration overrides • Replace (default), add or remove

    spec: overrides: - clusterName: cluster1 clusterOverrides: - path: "/spec/replicas" value: 5
  7. apiVersion: types.kubefed.io/v1beta1 kind: FederatedDeployment metadata: name: nginx-deployment spec: template: spec:

    replicas: 3 [...] placement: clusters: - cluster2 - cluster1 overrides: - clusterName: cluster2 clusterOverrides: - path: "/spec/replicas" value: 7
  8. Cluster API • Cluster - CIDRs for pods and services

    + DNS suffix • Machine - kubelet and control plane versions • MachineSet • MachineDeployment
  9. Management cluster Target clusters 2 / 3 • core •

    bootstrap • infrastructure providers
  10. Management cluster Target clusters 3 / 3 • core •

    bootstrap • infrastructure providers