Kubernetes Scalability: Federation and ClusterAPI

Kubernetes Scalability: Federation and ClusterAPI

Katie Gamanji

January 14, 2020

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

43 slides
  1. Federation v2 Mechanism for managing applications and services in multiple

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

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

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

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

    spec: overrides: - clusterName: cluster1 clusterOverrides: - path: "/spec/replicas" value: 5
  6. 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
  7. ClusterAPI - CRDs • Cluster - CIDRs for pods and

    services + DNS suffix • Machine - kubelet and control plane versions • MachineSet • MachineDeployment

More Decks by Katie Gamanji

Other Decks in Technology