Output of dinamic inventory.
> ./hosts
{
"kube-master": [
"master-1"
],
"kube-node": [
"node-sml-1",
"node-mid-1",
"node-lrg-1"
],
"etcd": [
"master-1"
],
"k8s-cluster": [
"master-1",
"node-sml-1",
"node-mid-1",
"node-lrg-1"
],
"_meta": {
"hostvars": {
"master-1": {
"ansible_port": "2222",
"ansible_host": "127.0.0.1",
"ansible_user": "vagrant",
"ansible_ssh_common_args": "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100",
"ip": "10.0.20.101",
"flannel_interface": "eth1",
"kube_network_plugin": "flannel",
"kube_network_plugin_multus": false,
"download_run_once": "True",
"download_localhost": "False",
"download_cache_dir": "/Users/butuzov/kubespray_cache",
"download_force_cache": "True",
"download_keep_remote_cache": "False",
"docker_keepcache": "1",
"kubeconfig_localhost": "True",
"kubectl_localhost": "True",
"local_path_provisioner_enabled": "false",
"local_path_provisioner_claim_root": "/opt/local-path-provisioner/",
"ansible_ssh_user": "vagrant"
},
"node-sml-1": {
"ansible_port": "2200",
"ansible_host": "127.0.0.1",
"ansible_user": "vagrant",
"ansible_ssh_common_args": "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100",
"ip": "10.0.20.102",
"flannel_interface": "eth1",
"kube_network_plugin": "flannel",
"kube_network_plugin_multus": false,
"download_run_once": "True",
"download_localhost": "False",
"download_cache_dir": "/Users/butuzov/kubespray_cache",
"download_force_cache": "True",
"download_keep_remote_cache": "False",
"docker_keepcache": "1",
"kubeconfig_localhost": "True",
"kubectl_localhost": "True",
"local_path_provisioner_enabled": "false",
"local_path_provisioner_claim_root": "/opt/local-path-provisioner/",
"ansible_ssh_user": "vagrant"
},
"node-mid-1": {
"ansible_port": "2201",
"ansible_host": "127.0.0.1",
"ansible_user": "vagrant",
"ansible_ssh_common_args": "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100",
"ip": "10.0.20.103",
"flannel_interface": "eth1",
"kube_network_plugin": "flannel",
"kube_network_plugin_multus": false,
"download_run_once": "True",
"download_localhost": "False",
"download_cache_dir": "/Users/butuzov/kubespray_cache",
"download_force_cache": "True",
"download_keep_remote_cache": "False",
"docker_keepcache": "1",
"kubeconfig_localhost": "True",
"kubectl_localhost": "True",
"local_path_provisioner_enabled": "false",
"local_path_provisioner_claim_root": "/opt/local-path-provisioner/",
"ansible_ssh_user": "vagrant"
},
"node-lrg-1": {
"ansible_port": "2202",
"ansible_host": "127.0.0.1",
"ansible_user": "vagrant",
"ansible_ssh_common_args": "-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100",
"ip": "10.0.20.104",
"flannel_interface": "eth1",
"kube_network_plugin": "flannel",
"kube_network_plugin_multus": false,
"download_run_once": "True",
"download_localhost": "False",
"download_cache_dir": "/Users/butuzov/kubespray_cache",
"download_force_cache": "True",
"download_keep_remote_cache": "False",
"docker_keepcache": "1",
"kubeconfig_localhost": "True",
"kubectl_localhost": "True",
"local_path_provisioner_enabled": "false",
"local_path_provisioner_claim_root": "/opt/local-path-provisioner/",
"ansible_ssh_user": "vagrant"
}
}
}
}
Static inventory generated by kubespray stack
# Generated by Vagrant
master-1 ansible_host=127.0.0.1 ansible_port=2222 ansible_user='vagrant' ansible_ssh_private_key_file='/Users/butuzov/.vagrant.d/insecure_private_key' ip=10.0.20.101 flannel_interface=eth1 kube_network_plugin=flannel kube_network_plugin_multus=false download_run_once=True download_localhost=False download_cache_dir=/Users/butuzov/kubespray_cache download_force_cache=True download_keep_remote_cache=False docker_keepcache=1 kubeconfig_localhost=True kubectl_localhost=False local_path_provisioner_enabled=false local_path_provisioner_claim_root=/opt/local-path-provisioner/ ansible_ssh_user=vagrant
node-lrg-1 ansible_host=127.0.0.1 ansible_port=2202 ansible_user='vagrant' ansible_ssh_private_key_file='/Users/butuzov/.vagrant.d/insecure_private_key' ip=10.0.20.104 flannel_interface=eth1 kube_network_plugin=flannel kube_network_plugin_multus=false download_run_once=True download_localhost=False download_cache_dir=/Users/butuzov/kubespray_cache download_force_cache=True download_keep_remote_cache=False docker_keepcache=1 kubeconfig_localhost=True kubectl_localhost=False local_path_provisioner_enabled=false local_path_provisioner_claim_root=/opt/local-path-provisioner/ ansible_ssh_user=vagrant
node-mid-1 ansible_host=127.0.0.1 ansible_port=2201 ansible_user='vagrant' ansible_ssh_private_key_file='/Users/butuzov/.vagrant.d/insecure_private_key' ip=10.0.20.103 flannel_interface=eth1 kube_network_plugin=flannel kube_network_plugin_multus=false download_run_once=True download_localhost=False download_cache_dir=/Users/butuzov/kubespray_cache download_force_cache=True download_keep_remote_cache=False docker_keepcache=1 kubeconfig_localhost=True kubectl_localhost=False local_path_provisioner_enabled=false local_path_provisioner_claim_root=/opt/local-path-provisioner/ ansible_ssh_user=vagrant
node-sml-1 ansible_host=127.0.0.1 ansible_port=2200 ansible_user='vagrant' ansible_ssh_private_key_file='/Users/butuzov/.vagrant.d/insecure_private_key' ip=10.0.20.102 flannel_interface=eth1 kube_network_plugin=flannel kube_network_plugin_multus=false download_run_once=True download_localhost=False download_cache_dir=/Users/butuzov/kubespray_cache download_force_cache=True download_keep_remote_cache=False docker_keepcache=1 kubeconfig_localhost=True kubectl_localhost=False local_path_provisioner_enabled=false local_path_provisioner_claim_root=/opt/local-path-provisioner/ ansible_ssh_user=vagrant
[etcd]
master-1
[kube-master]
master-1
[kube-node]
node-sml-1
node-mid-1
node-lrg-1
[k8s-cluster:children]
kube-master
kube-node