cybergavin 378e05905c Updated README 4 years ago
..
files 4c28c28c98 First version 4 years ago
vars 4c28c28c98 First version 4 years ago
README.md 378e05905c Updated README 4 years ago
k8s_calico.yaml 4c28c28c98 First version 4 years ago
k8s_cp_init.yaml 4c28c28c98 First version 4 years ago
k8s_create.yaml 4c28c28c98 First version 4 years ago
k8s_join_node.yaml 4c28c28c98 First version 4 years ago
k8s_joincommand.yaml 4c28c28c98 First version 4 years ago
k8s_prep.yaml 4c28c28c98 First version 4 years ago

README.md

Creation of a simple Kubernetes cluster with Ansible

The create-k8s-basic directory contains an ansible playbook (k8s_create.yaml) that may be used to create a simple 3-node kubernetes cluster using the latest stable version of kubernetes and the containerd runtime.

Pre-Requisites

  • Three pre-provisioned RHEL 8 nodes with connectivity to the Internet to download packages and images from repositories and registries.
  • A user account (auto.svc in my playbook) with sudo (root) privileges provisioned on the ansible control node and all RHEL 8 nodes. Also ensure that the user’s SSH keys are set up to allow execution of the ansible playbook.

Implementation

  • Set the POD and SERVICE network CIDR blocks in vars/main.yaml
  • Add details for the pre-provisioned RHEL 8 nodes to the files/inventory
  • Execute the following command:

    ansible-playbook -i files/inventory k8s_create.yaml