k8s_init
freehck.k8s_init
Initialize kubernetes cluster with kubeadm
Description
This role initializes kubernetes address. It suggests that all the binaries (kubeadm
and kubelet
) are already installed.
Role Variables
k8s_init_cidr
: cidr that k8s will use
k8s_init_node_ip
: this node ip address, on bare metal hosts and virtual machines you can use ansible_host
or ansible_default_ipv4.address
.
Example
- hosts: k8s-master
become: true
vars:
# k8s_base is an implicit dependency
k8s_base_node_ip: "10.118.19.10"
k8s_base_ver: "1.16.2-00"
# this role configurations
k8s_init_cidr: "192.168.0.0/16"
k8s_init_node_ip: "10.118.19.10"
k8s_init_node_name: "{{ inventory_hostname }}"
roles:
- role: freehck.k8s_base
- role: freehck.k8s_init
Install
This role can be installed from Ansible Galaxy:
ansible-galaxy install freehck.k8s_init
License
MIT
Author Information
Dmitrii Kashin, freehck@freehck.ru
Install
ansible-galaxy install freehck/ansible-role-k8s-init
License
Unknown
Downloads
251
Owner