Alternative to Swisscom CF plugin named Service Connector

旧城冷巷雨未停 提交于 2019-12-12 18:14:35

问题


Lots of people use Swisscom developed CF Plugin

After creating a service instance, you’ll eventually need to administrate the service. For example you might need to create data tables in a database or backup/restore your data. For these use cases, we created the Cloud Foundry CLI Plugin Service Connector which is a local proxy app through which you can connect to your service instances using your preferred locally installed tools.

There is an alternative without installing and updating a CF plugin. CloudFoundry provide a way to ssh into apps, with this you can also tunnel connections to your local desktop


回答1:


Local Port Forwarding

Local port forwarding lets you connect from your local computer to another server. To use local port forwarding, you need to know your destination server, and two port numbers (local and remote).

It's important to be in the correct Org and Space because of security groups.

cf t -o $YOUR_ORG -s $YOUR_SPACE
cf ssh $YOUR_APP -L 8080:opsmanager.service.consul:8080

now you can connect with your local browser to opsmanager.service.consul. Just enter in address bar localhost:8080. This is the Ops Manager offered by Swisscom with Mongo Enterprise service. It's a awesome tool to monitor and analyse your MongoDB deployment. But you can do the same trick with every internal *.service.consul address and port number.



来源:https://stackoverflow.com/questions/42176081/alternative-to-swisscom-cf-plugin-named-service-connector

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!