Skip to content

Commit f9979cd

Browse files
committed
closes #4
1 parent 2ff06c3 commit f9979cd

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.MD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ Currently it has several subprojects:
1212
- [LocalRegistry](LocalRegistry/) : A local docker registry that will run in the kubernetes cluster to get fast feedback of deployments
1313
- [EurekaServer](EurekaServer/) : A Eureka Server as a temporary service discovery server for testing the gateway
1414
- [SimpleMicroservice](SimpleMicroservice/) : A Simple Microservice to test the gateway
15+
- [SpringKubeGateway](SpringKubeGateway/) : Our Spring Cloud Gateway with Kubernetes support
1516

1617
TBC

SpringKubeGateway/README.MD

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@ A Spring Cloud Gateway with Kubernetes support
55

66
## info
77

8-
http://localhost/simplemicroservice/hello
8+
This is a simple edge server using the new spring cloud gateway.
99

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

0 commit comments

Comments
 (0)