istvano.kubectx

Ansible Role: kubectx

This role will download and install kubectx, a Kubernetes command-line tool that helps you easily switch between different contexts and namespaces.

Requirements

  • Ansible version 2.7 or higher

  • Supported Linux Distributions:

    • Debian Family:

      • Debian:
        • Jessie (8)
        • Stretch (9)
      • Ubuntu:
        • Xenial (16.04)
        • Bionic (18.04)
    • RedHat Family:

      • CentOS:
        • 7
    • Note: Other versions might work but haven’t been tested.

Role Variables

You can change how this role behaves by adjusting the following variables (default values are given):

# Version of kubectx
kubectx_version: '0.25.0'

Example Playbook

Here's an example of how to use this role in a playbook:

- hosts: servers
  roles:
    - role: istvano.kubectx

Development & Testing

This project uses Molecule for testing.

To run the tests, use the provided

Molecule Wrapper:

./moleculew test

To check the code quality, run:

./moleculew lint

You can also test it locally with:

ansible-playbook ./tests/test.yml

License

MIT License

Informazioni sul progetto

Ansible role for downloading and installing the kubectx and kubeenv commands for Kubernetes.

Installa
ansible-galaxy install istvano.kubectx
Licenza
mit
Download
431
Proprietario