based on kyarovoy's work.
To register only exposed services in Consul (there is no access from outside to not exposed ones)
To support different Consul configurations
Usage: kube2pyconsul.py [-v ] [--verify-ssl] [--consul-agent=] [--kube-master=] [--consul-auth=<user,pass>] [--kube-auth=<user,pass>] [--consul-token=token] kube2pyconsul.py (-h | --help)
Options: -h --help Show this screen. -v Set logging level [default: INFO] --consul-agent= Consul agent location [default: http://127.0.0.1:8500]. --kube-master= Kubeapi location [default: https://127.0.0.1:443] --consul-auth=<user,pass> Consul http auth credentials [default: None] --kube-auth=<user,pass> Kubernetes http auth credentials [default: None] --verify-ssl Verify SSL or not when connecting to APIs [default: False] --consul-token=token Token for ACL enabled consul