theJaxon / ansible-role-KinD

A role made to create a kubernetes cluster using KinD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ansible-role-KinD

A role made to create a kubernetes cluster using KinD on CentOS 8.

The role installs:

  • docker-ce
  • kubectl
  • KinD
  • Before running the role first change username in defaults/main.yml into your current username.
  • After docker installation the instance should be rebooted so that docker commands run without sudo as the current user is now added to the docker group.

To create a new cluster use

kind create cluster # Context name is kind by default

To interact with the newly created cluster use:

kubectl cluster-info --context kind-kind

# Create a KinD Cluster Declarative approach
kind create cluster --config=cluster.yaml 

# Create a KinD cluster via imperative approach
KIND_EXPERIMENTAL_PROVIDER=podman kind create cluster --name jaxon

# Delete Cluster
kind delete cluster --name jaxon

About

A role made to create a kubernetes cluster using KinD


Languages

Language:Shell 100.0%