项目作者: moshloop

项目描述 :
An ansible dynamic inventory plugin for kubernetes cluster nodes
高级语言: Python
项目地址: git://github.com/moshloop/kubectl-ansible.git
创建时间: 2019-02-26T09:15:12Z
项目社区:https://github.com/moshloop/kubectl-ansible

开源协议:

下载


kubectl-ansible

A dynamic inventory plugin for ansible that retrieves nodes from kubernetes cluster.

  1. $ pip install kubectl-ansible
  2. $ kubectl get nodes
  3. NAME STATUS ROLES AGE VERSION
  4. master01 Ready master 7d18h v1.13.2
  5. worker01 Ready <none> 7d13h v1.13.2
  6. $ kubectl ansible -m ping all
  7. master01| SUCCESS => {
  8. "changed": false,
  9. "ping": "pong"
  10. }
  11. worker01| SUCCESS => {
  12. "changed": false,
  13. "ping": "pong"
  14. }