File tree Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Expand file tree Collapse file tree 2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ Currently it has several subprojects:
12
12
- [ LocalRegistry] ( LocalRegistry/ ) : A local docker registry that will run in the kubernetes cluster to get fast feedback of deployments
13
13
- [ EurekaServer] ( EurekaServer/ ) : A Eureka Server as a temporary service discovery server for testing the gateway
14
14
- [ SimpleMicroservice] ( SimpleMicroservice/ ) : A Simple Microservice to test the gateway
15
+ - [ SpringKubeGateway] ( SpringKubeGateway/ ) : Our Spring Cloud Gateway with Kubernetes support
15
16
16
17
TBC
Original file line number Diff line number Diff line change @@ -5,6 +5,36 @@ A Spring Cloud Gateway with Kubernetes support
5
5
6
6
## info
7
7
8
- http://localhost/simplemicroservice/hello
8
+ This is a simple edge server using the new spring cloud gateway.
9
9
10
- http://localhost/hello
10
+ The gateway could be run locally or expose in a kubernetes cluster.
11
+
12
+
13
+ ## run it locally
14
+
15
+ First, you need to have running the Eureka on your computer, for example the provided [ EurekaServer] ( ../EurekaServer/ ) .
16
+
17
+ Then, you need some microservices running in eureka, such the provide [ SimpleMicroservice] ( ../SimpleMicroservice/ )
18
+
19
+ Finally, start the gateway with:
20
+
21
+ ``` bash
22
+ $ mvnw spring-boot:run
23
+ ```
24
+
25
+ You could invoke any server in eureka in the format offormat ` http://localhost/NAME-IN-EUREKA/method ` , for example:
26
+
27
+ ``` bash
28
+ $ curl http://localhost/simplemicroservice/hello
29
+ ```
30
+
31
+ For testing porpoise a specific route has been create for the simple microservice:
32
+
33
+
34
+ ``` bash
35
+ $ curl http://localhost/hello
36
+ ```
37
+
38
+ ## run it in the kubernertes cluster
39
+
40
+ TBD
You can’t perform that action at this time.
0 commit comments