darkwizard242.kubelet

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: kubelet

This role installs the kubelet by default on Debian/Ubuntu and EL systems.

Requirements

There are no specific requirements.

Role Variables

The available variables are listed below (found in defaults/main.yml):

Variables list:

kubelet_app: kubelet
kubelet_version: 1.31.0
kubelet_os: "{{ ansible_system | lower }}"
kubelet_architecture_map:
  amd64: amd64
  arm: arm64
  x86_64: amd64
  armv6l: armv6
  armv7l: armv7
  aarch64: arm64
  32-bit: "386"
  64-bit: amd64
kubelet_dl_url: https://dl.k8s.io/release/v{{ kubelet_version }}/bin/{{ kubelet_os }}/{{ kubelet_architecture_map[ansible_architecture] }}/{{ kubelet_app }}
kubelet_bin_path: /usr/local/bin
kubelet_file_mode: '0755'
kubelet_systemd_service_setup: true
kubelet_systemd_template_out_dir: /etc/systemd/system
kubelet_systemd_template_in_file: kubelet.service.j2
kubelet_systemd_template_out_file: kubelet.service
kubelet_systemd_dropin_dir: "{{ kubelet_systemd_template_out_dir }}/{{ kubelet_app }}.service.d"
kubelet_systemd_dropin_source_file: 10-kubeadm.conf.j2
kubelet_systemd_dropin_dest_file: 10-kubeadm.conf
kubelet_systemd_service_enable_state: yes
kubelet_systemd_service_state: started

Variables table:

Variable Description
kubelet_app The name of the application to install, which is kubelet.
kubelet_version The version of kubelet to install. Default is 1.31.0.
kubelet_os The type of operating system being used.
kubelet_architecture_map Maps the OS architecture to the appropriate binary version for installation.
kubelet_dl_url The URL to download the kubelet binary from.
kubelet_bin_path The path where the kubelet binary will be stored. Default is /usr/local/bin.
kubelet_file_mode Sets the permissions for the kubelet binary file.
kubelet_systemd_service_setup A boolean indicating whether to set up the systemd service for kubelet.
kubelet_systemd_template_out_dir The directory where the systemd service template will be stored.
kubelet_systemd_template_in_file The input template file for the systemd service of kubelet.
kubelet_systemd_template_out_file The name of the output systemd service file for kubelet.
kubelet_systemd_dropin_dir Directory for storing the systemd drop-in configuration for kubelet.
kubelet_systemd_dropin_source_file Template for the systemd drop-in configuration.
kubelet_systemd_dropin_dest_file Name of the output file for the systemd drop-in configuration.
kubelet_systemd_service_enable_state Indicates whether the kubelet service should be enabled to start at boot.
kubelet_systemd_service_state Indicates the state of the kubelet systemd service (should it be started or stopped).

Dependencies

No dependencies are needed.

Example Playbook

To use the role with its default behavior (installing kubelet) in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.kubelet

To customize the role (e.g., specifying a different kubelet version) in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.kubelet
  vars:
    kubelet_version: 1.22.0

To customize the role (e.g., placing the kubelet binary in a different location) in Ansible playbooks:

- hosts: servers
  roles:
    - darkwizard242.kubelet
  vars:
    kubelet_bin_path: /bin/

License

This project is licensed under the MIT License.

Author Information

This role was created by Ali Muhammad.

Informazioni sul progetto

Installs/Uninstalls 'kubelet', Node Agent for Kubernetes Cluster.

Installa
ansible-galaxy install darkwizard242.kubelet
Licenza
mit
Download
2.5k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!