Skip to content

Ansible Playbook to install Kubernetes

Notifications You must be signed in to change notification settings

rajeshking95/k8s-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to k8s-ansible!

Ansible Playbook to install Kubernetes

Files

File Description
hosts List of the hosts
install-k8s.yaml Playbook code to install Kubernetes

Installing Ansible on Ubuntu

sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
sudo apt install python3-pip
sudo pip install netaddr

Running the Playbook

ansible-playbook -i hosts -l k8s_cluster install-k8s.yaml
ansible-playbook -i hosts -l k8s_cluster install-k8s.yaml --start-at-task='<name of the task>'
ansible-playbook -i hosts -l k8s_cluster install-k8s.yaml --step --start-at-task='<name of the task>'
ansible-playbook -i hosts -l k8s_cluster install-k8s.yaml --list-hosts

Checking Kubernetes Installation

kubectl get nodes

Source

About

Ansible Playbook to install Kubernetes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published