codecap.kubectl

Ansible Role: kubectl

Build Status Ansible Galaxy

This is an Ansible role for installing kubectl (which is a command-line tool for Kubernetes).

Requirements

You need internet access because kubectl will be downloaded online. The tool curl is used to do this.

Role Variables

kubectl_conf:
  path:
    # Where to install kubectl
    bin:    '~/bin'
    # Where to put extra scripts for autocompletion
    script: '~/scripts'
  # Version to download
  version:            latest
  # URL to find the latest release information for Kubernetes
  latest_url:         'https://storage.googleapis.com/kubernetes-release/release/stable.txt'
  # URL to find Kubernetes releases
  release_url:        'https://storage.googleapis.com/kubernetes-release/release'
  # If you want to install autocompletion scripts
  install_completion: true

Dependencies

None

Example Playbook

Use the following playbook to install kubectl with default settings:

    - hosts: servers
      roles:
         - role: codecap.kubectl

Check the defaults/main.yml file to see more settings you can change.

License

BSD

Author Information

Vladislav Nazarenko
http://codeberry.de

Informazioni sul progetto

Ansible role to install kubectl (kubernetes)

Installa
ansible-galaxy install codecap.kubectl
Licenza
Unknown
Download
558
Proprietario