https://github.com/moshloop/kubectl-ansible
An ansible dynamic inventory plugin for kubernetes cluster nodes
https://github.com/moshloop/kubectl-ansible
ansible kubectl kubectl-plugins
Last synced: 5 days ago
JSON representation
An ansible dynamic inventory plugin for kubernetes cluster nodes
- Host: GitHub
- URL: https://github.com/moshloop/kubectl-ansible
- Owner: moshloop
- Created: 2019-02-26T09:15:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-26T09:15:42.000Z (about 6 years ago)
- Last Synced: 2025-03-26T16:02:09.434Z (22 days ago)
- Topics: ansible, kubectl, kubectl-plugins
- Language: Python
- Size: 1000 Bytes
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-kubectl-plugins - kubectl-ansible - ansible)](https://github.com/moshloop/kubectl-ansible/stargazers) | (kubectl Plugins / Installing plugins via awesome-kubectl-plugins)
README
# kubectl-ansible
A dynamic inventory plugin for ansible that retrieves nodes from kubernetes cluster.
```bash
$ pip install kubectl-ansible
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
master01 Ready master 7d18h v1.13.2
worker01 Ready 7d13h v1.13.2
$ kubectl ansible -m ping all
master01| SUCCESS => {
"changed": false,
"ping": "pong"
}
worker01| SUCCESS => {
"changed": false,
"ping": "pong"
}
```