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 |
---|---|---|---|
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 |
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:
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.
ansible-galaxy install robertdebock.kubectl