This script assume you already configure access from your ansible host to your nodes:
To run this ansible play book, you need all 3 files:
instkuber-node.yml is based on instruction of installation kubernetes on the offical site
kube-nodes is list of nodes that you want install kubeadm, kubectl, and kubelet to:
join-command is the script to join these newly kubernetes nodes to an existing cluster (master)
You must update join-command content with the out put of "kubeadm token create --print-join-command" of your cluster master.
ansible-playbook -i kube-nodes instkuber-nodes.yml --ask-become-pass
-
Notifications
You must be signed in to change notification settings - Fork 0
Install Kubernetes and add node to cluster with Ansible
License
zeebote/install-kubernetes-with-ansible
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Install Kubernetes and add node to cluster with Ansible
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published