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

ClusterAPI: A Guide to Get Started

ClusterAPI: A Guide to Get Started

Katie Gamanji

October 26, 2019
Tweet

More Decks by Katie Gamanji

Other Decks in Technology

Transcript

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

    publishing with a heritage of more than 110 years.
  2. ClusterAPI - CRDs • Cluster - CIDRs for pods and

    services + DNS suffix • Machine - kubelet and control plane versions • MachineSet • MachineDeployment
  3. apiVersion: cluster.x-k8s.io/v1alpha2 kind: Cluster metadata: name: capi-quickstart spec: clusterNetwork: pods:

    cidrBlocks: ["192.168.0.0/16"] infrastructureRef: apiVersion: ${API_VERSION} kind: ${PROVIDER_KIND} name: capi-quickstart Cluster Manifest
  4. apiVersion: ${API_VERSION} kind: GCPCluster metadata: name: capi-quickstart spec: project: capi-project

    region: us-east-1 network: name: capi-network GCP InfrastructureRef
  5. apiVersion: cluster.x-k8s.io/v1alpha2 kind: Machine metadata: [...] spec: version: v1.15.3 bootstrap:

    configRef: apiVersion: ${API_VERSION} kind: KubeadmConfig name: capi-controlplane-0 infrastructureRef: apiVersion: ${API_VERSION} kind: ${PROVIDER_KIND} name: capi-controlplane-0 Machine Manifest
  6. apiVersion: ${API_VERSION} kind: KubeadmConfig metadata: name: capi-controlplane-0 spec: initConfiguration: nodeRegistration:

    name: ${HOSTNAME} kubeletExtraArgs: cloud-provider: aws clusterConfiguration: apiServer: extraArgs: cloud-provider: aws controllerManager: extraArgs: cloud-provider: aws AWS Boostrap Config
  7. apiVersion: ${API_VERSION} kind: AWSMachine metadata: name: capi-controlplane-0 spec: instanceType: t3.large

    iamInstanceProfile: "capi-iam" sshKeyName: default AWS InfrastructureRef