Ansible role for 'kubeadm'. Available on Ansible Galaxy.
MIT License
Role to install (by default) kubeadm on Debian/Ubuntu and EL systems.
None.
Available variables are listed below (located in defaults/main.yml
):
kubeadm_app: kubeadm
kubeadm_version: 1.31.0
kubeadm_os: "{{ ansible_system | lower }}"
kubeadm_architecture_map:
amd64: amd64
arm: arm64
x86_64: amd64
armv6l: armv6
armv7l: armv7
aarch64: arm64
32-bit: "386"
64-bit: amd64
kubeadm_dl_url: https://dl.k8s.io/release/v{{ kubeadm_version }}/bin/{{ kubeadm_os }}/{{ kubeadm_architecture_map[ansible_architecture] }}/{{ kubeadm_app }}
kubeadm_bin_path: /usr/local/bin
kubeadm_file_mode: '0755'
Variable | Description |
---|---|
kubeadm_app | Defines the app to install i.e. kubeadm |
kubeadm_version | Defined to dynamically fetch the desired version to install. Defaults to: 1.31.0 |
kubeadm_os | Defines OS type. |
kubeadm_architecture_map | Defines os architecture. Used for obtaining the correct type of binaries based on OS System Architecture. |
kubeadm_dl_url | Defines URL to download the kubeadm binary from. |
kubeadm_bin_path | Defined to dynamically set the appropriate path to store kubeadm binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin |
kubeadm_file_mode | Mode for the binary file of kubeadm. |
None
For default behaviour of role (i.e. installation of kubeadm) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.kubeadm
For customizing behavior of role (i.e. specifying the desired kubeadm version) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.kubeadm
vars:
kubeadm_version: 1.22.0
For customizing behavior of role (i.e. placing binary of kubeadm package in different location) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.kubeadm
vars:
kubeadm_bin_path: /bin/
This role was created by Ali Muhammad