Skip to main content

k8s Cluster Creation

An article on a simple k8s cluster creation using kind.

Updated 1 min readMarkdown
Part of seriesDevOps

TL;DR

Started self-training on DevOps Engineering. Selected kind for creating cluster at it keeps the code for cluster creation documented. The article is self-explanatory. It just creates 1 control plane and 3 worker nodes.

Code

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
  - role: control-plane
    kubeadmConfigPatches:
      - |
        kind: InitConfiguration
        nodeRegistration:
          name: control-plane-1
  - role: worker
    kubeadmConfigPatches:
      - |
        kind: JoinConfiguration
        nodeRegistration:
          name: worker-1
  - role: worker
    kubeadmConfigPatches:
      - |
        kind: JoinConfiguration
        nodeRegistration:
          name: worker-2
  - role: worker
    kubeadmConfigPatches:
      - |
        kind: JoinConfiguration
        nodeRegistration:
          name: worker-3

GitHub Repo Details

https://github.com/d4rkr0n1n/DevOps/blob/main/k8s/multi-node/README.md

Thanks for reading till here ! 馃檹

No comments yet. Be the first to comment.

DevOps

Part 1 of 1