robertdebock.kubectl

Ansible Role: Kubectl

THIS ROLE IS NO LONGER MAINTAINED AS OF DEC 2023.

This role installs the latest stable version of kubectl on your system.

GitHub GitLab Downloads Version
github gitlab downloads Version

Example Playbook

This example comes from molecule/default/converge.yml and has been tested with every change made.

---
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.kubectl

Before running this playbook, the machine needs to be prepared. In CI, this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: yes
  gather_facts: no

  roles:
    - role: robertdebock.bootstrap

For a detailed explanation and examples, check this guide.

Requirements

You need the pip packages listed in requirements.txt.

Used Roles

The roles below are necessary to prepare the system, but you can choose to prepare your system in a different way.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab

Context

This role is part of a bigger set of compatible roles. For more details, visit the documentation page.

Here is a visual of related roles: dependencies

Compatibility

This role is tested on these container images:

Container Tags
Alpine all
Amazon Candidate
Enterprise Linux 8, 9
Debian all
Fedora all
OpenSUSE all
Ubuntu all

You will need at least Ansible version 2.12. Testing has been done on:

  • The previous version.
  • The current version.
  • The development version.

If you encounter any issues, please report them on GitHub.

License

This project is licensed under Apache-2.0.

Author

Created by robertdebock.

Consider supporting me.

Informazioni sul progetto

Install the latest stable version of kubectl on your system.

Installa
ansible-galaxy install robertdebock.kubectl
Licenza
apache-2.0
Download
26.7k
Proprietario
I know my way around (Linux) infrastructure, have a passion for automation, Docker, Ansible, Molecule and ci/cd.