Skip to content

aardsoft/ansible-sshkubectl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ansible-sshkubectll

An Ansible connection plugin for remotely provisioning kubernetes containers.

This works by SSHing to the host capable of accessing the kubernetes API (typically a cluster member) using the standard Ansible SSH connection, using it for storing temporary files, and controlling the target container from there via kubectl.

This is a merge of two connection plugins:

Requirements

Control node (your workstation or deployment server):

  • Ansible 2.16+
  • Python 3

kubectl host:

  • accessible by SSH
  • kubectl binary installed
  • Python 3

Target container:

  • Python 3

Installation

This is a "Connection Type Plugin", as outlined in the Ansible docs.

To install sshjail:

  1. Clone this repo.
  2. Copy or link sshkubectl.py to one of the supported locations:
  • /usr/share/ansible/plugins/connection_plugins/sshkubectl.py
  • path/to/your/toplevelplaybook/connection_plugins/sshkubectl.py

Usage

TBD

Known Issues

See the issue tracker

Contributing

Let me know if you have any difficulties using this, by creating an issue.

Pull requests are always welcome! I'll try to get them reviewed in a timely manner.

About

An ansible connection plugin to use kubectl via SSH

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages