File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
spring-cloud-kubernetes-examples/kubernetes-hello-world-example Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,18 @@ When the client is installed on your machine, you can start kubernetes using thi
20
20
minikube start
21
21
```
22
22
23
- Next, you can play with this Spring Boot application in the cloud using the following maven command to deploy:
23
+ Next, you can play with this Spring Boot application in the cloud using the following maven command to deploy it :
24
24
```
25
25
mvn clean package fabric8:deploy
26
- ```
27
- When the application has been deployed, you can access its service or endpoint:
26
+ ```
27
+
28
+ When the application has been deployed, you can access its service or endpoint url using this command:
28
29
```
29
- minikube service kubernetes-hello-world
30
+ minikube service kubernetes-hello-world --url
30
31
```
31
32
32
- And next you can curl the endpoint
33
+ And next you can curl the endpoint using the url returned by the previous command
34
+
33
35
```
34
36
curl http://IP_OR_HOSTNAME/
35
37
```
@@ -43,4 +45,6 @@ When the service becomes available, the unit test which is a HTTP Client will ca
43
45
44
46
To play with the integration test, execute the following maven command:
45
47
48
+ ```
46
49
mvn clean install -Pintegration
50
+ ```
You can’t perform that action at this time.
0 commit comments