From 4f8a7ef794e32e9753862d70bf49cf7ba4cb0d60 Mon Sep 17 00:00:00 2001 From: Ray Zhou Date: Wed, 18 Mar 2020 10:19:06 +0800 Subject: [PATCH] Update how to connect remote service locally guide --- .../how-to-connect-remote-service.md | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/developer-guide/development/how-to-connect-remote-service.md b/developer-guide/development/how-to-connect-remote-service.md index 2536eb6da..b7d348c59 100644 --- a/developer-guide/development/how-to-connect-remote-service.md +++ b/developer-guide/development/how-to-connect-remote-service.md @@ -1,23 +1,21 @@ # Connect to remote service with telepresence -Telepresence is an open source tool that lets you run a single service locally, while connecting that service to a remote Kubernetes cluster. +[Telepresence](https://www.telepresence.io/) is an open source tool that lets you run a single service locally, while connecting the service to a remote Kubernetes cluster. -We can use telepresence to help us running KubeSphere apiserver locally. +We can use Telepresence to help us running KubeSphere apiserver locally. +## 1. Install Telepresence -## 1. Install telepresence +You can read the [official installation documentation](https://www.telepresence.io/reference/install.html) to install Telepresence. -You can read the [official installation documentation](https://www.telepresence.io/reference/install.html) to install telepresence. +## 2. Run Telepresence -## 2. Run telepresence +Open your command line and run the command `telepresence`. Telepresence will help you to enter a bash connected to a remote Kubernetes cluster. -Open your command line and run the command `telepresence`, telepresence will help you to enter a bash connected to a remote Kubernetes cluster. - -Test telepresence with KubeSphere apigateway: +Test Telepresence with KubeSphere apigateway: ```bash - -@kubernetes-admin@cluster.local|bash-3.2$ curl http://ks-apigateway.kubesphere-system +$ curl http://ks-apigateway.kubesphere-system 401 Unauthorized ``` @@ -29,6 +27,7 @@ Now your module can easily connect to remote services. ```bash go run cmd/ks-apiserver/apiserver.go ``` + ## 4. Further more -You can use telepresence to replace services in the cluster for debugging. For more information, please refer to the [official documentation](https://www.telepresence.io/discussion/overview). +You can use Telepresence to replace services in the cluster for debugging. For more information, please refer to the [official documentation](https://www.telepresence.io/discussion/overview).