michaelwasher.krew

Ansible Krew

This Ansible role helps to install the Kubectl Krew tool and manage Kubernetes packages.

Requirements

None

Role Variables

Here are the variables you can set:

  • krew_bin_path: (optional) specify where to install the krew binary.
  • krew_user: name of the user who will have the plugins installed.
  • krew_version: version of krew to install. Use 'latest' for the most current version.
  • krew_plugins: a list of all krew plugins you want to install.

Examples:

krew_bin_path: "/usr/local/bin/kubectl-krew"
krew_user: mwasher
krew_version: latest
krew_plugins: 
  - "strace"

Dependencies

  • geerlingguy.git: This is needed as it may require git to be installed.

Example Playbook

- name: Ensure Krew and Plugins are installed
  hosts: all
  roles:
    - role: geerlingguy.git
  tasks:
  - include_role:
      name: michaelwasher.krew
    vars:
      krew_user: mwasher
      krew_version: "v0.4.2"
      krew_plugins: 
      - "strace"

License

Apache 2.0

Author Information

Name: Michael Washer
Website LinkedIn Github

Informazioni sul progetto

Ansible Role for installing the Kubectl Krew tool and managing Kubernetes packages

Installa
ansible-galaxy install michaelwasher.krew
Licenza
apache-2.0
Download
682
Proprietario