Skip to content

Create a single-node Kubernetes cluster using Ansible on Ubuntu 20.04

License

Notifications You must be signed in to change notification settings

oradwell/single-k8s-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

single-k8s-ansible

Create a single-node Kubernetes cluster using Ansible on Ubuntu 20.04

Provision using Vagrant

Requirements:

Let Vagrant handle everything

vagrant up

asciicast

Provision Directly via Ansible

INVENTORY_HOST=192.168.1.100
SSH_USER=bob
KEY_FILE_PATH="/home/${USER}/.ssh/id_rsa"

ansible-playbook \
  -i "${INVENTORY_HOST}", \
  -u "${SSH_USER}" \
  --private-key "${KEY_FILE_PATH}" \
  playbook.yml

asciicast

Links