创建ssh隧道到aws上的集群应用程序的便利工具
stups-ssh-tunnels的Python项目详细描述
创建ssh隧道到aws上的集群应用程序的便利工具。
集群应用程序示例如下:
- 卡夫卡
- 动物园管理员
- 卡桑德拉
此工具自动将专用vpc ip添加到本地环回lo接口 以及你的/etc/hosts文件。 可以从本地计算机直接访问群集节点。
$ tunnels my-senza-stack 9092 odd-eu-central-1.myteam.example.org --region eu-central-1
安装
$ git clone https://github.com/zalando-stups/ssh-tunnels.git $ cd ssh-tunnels $ sudo python3 setup.py install # remove "sudo" if you have user-local Python setup
用法
连接到使用senza部署的Cassandra群集:
$ piu odd-eu-west-1.myteam.example.org SSH tunnel to Cassandra for keyspace management $ tunnels my-cassandra 9042 odd-eu-west-1.myteam.example.org --region eu-west-1 # open a new terminal $ cqlsh 172.31.141.1 # take one seed IP printed by tunnels.py