$ brew install ansible # OSX
$ [sudo] pip install ansible # elsewhere
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # find the kube node of the running pod, appear next to hostIP, and note containerID hash | |
| kubectl get pod mypod -o json | |
| # -> save hostIP | |
| # -> save containerID | |
| # connect to the node and find the pods unique network interface index inside it's container | |
| docker exec containerID /bin/bash -c 'cat /sys/class/net/eth0/iflink' | |
| # -> returns index | |
| # locate the interface of the node |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Install docker | |
| gather_facts: No | |
| hosts: default | |
| tasks: | |
| - name: Install yum utils | |
| yum: | |
| name: yum-utils | |
| state: latest |