kubectx
Ansible Role: kubectx
Role to download and install kubectx Kubernetes CLI that helps you switch between contexts and namespaces
Requirements
Ansible >= 2.7
Linux Distribution
Debian Family
Debian
- Jessie (8)
- Stretch (9)
Ubuntu
- Xenial (16.04)
- Bionic (18.04)
RedHat Family
CentOS
- 7
Note: other versions are likely to work but have not been tested.
Role Variables
The following variables will change the behavior of this role (default values are shown below):
# kubectx version number
kubectx_version: '0.25.0'
Example Playbook
----------------
```yaml
- hosts: servers
roles:
- role: istvano.kubectx
Development & Testing
This project uses Molecule.
You can test it by running with the provided
./moleculew test
If you want to lint the project use:
./moleculew lint
or you can test it locally by running
ansible-playbook ./tests/test.yml
License
MIT
About
Ansible role for downloading and installing the kubectx and kubeenv commands for Kubernetes.
Install
ansible-galaxy install istvano/ansible_role_kubectx
License
mit
Downloads
421
Owner