Skip to content

Commit 249a3b7

Browse files
author
Matt Raible
committed
Polishing K8s example
1 parent 3403dec commit 249a3b7

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,17 @@ You will be prompted with several questions. The answers will be pre-populated f
262262

263263
- Type of application: **Microservice application**
264264
- Root directory: **../**
265-
- Which applications? <select all>
265+
- Which applications? `<select all>`
266266
- Set up monitoring? **No**
267267
- Which applications with clustered databases? select **store**
268-
- Admin password for JHipster Registry: <generate one>
268+
- Admin password for JHipster Registry: `<generate one>`
269269
- Kubernetes namespace: **demo**
270-
- Docker repository name: <your docker hub username>
270+
- Docker repository name: `<your docker hub username>`
271271
- Command to push Docker image: `docker push`
272272
- Enable Istio? **No**
273273
- Kubernetes service type? **LoadBalancer**
274274
- Use dynamic storage provisioning? **Yes**
275-
- Use a specific storage class? <leave empty>
275+
- Use a specific storage class? `<leave empty>`
276276

277277
### Install Minikube to Run Kubernetes Locally
278278

@@ -282,7 +282,7 @@ If you have Docker installed, you can run Kubernetes locally with Minikube. Run
282282
minikube --memory 8g --cpus 8 start
283283
```
284284

285-
Now, you need to build Docker images for each app. In the {`gateway`, `blog`, `store` } directories, run the following Gradle command (where `<image-name>` is `gateway`, `store`, or `blog`).
285+
Build Docker images for each app. In the {`gateway`, `blog`, `store` } directories, run the following Gradle command (where `<image-name>` is `gateway`, `store`, or `blog`).
286286

287287
```shell
288288
./gradlew bootJar -Pprod jib -Djib.to.image=<docker-repo-name>/<image-name>
@@ -375,7 +375,7 @@ You can use port-forwarding to see the JHipster Registry.
375375
kubectl port-forward svc/jhipster-registry -n default 8761
376376
```
377377

378-
Open a browser and navigate to `\http://localhost:8761`. You'll need to sign in with your Okta credentials.
378+
Open a browser and navigate to `http://localhost:8761`. You'll need to sign in with your Okta credentials.
379379

380380
Once all is green, use port-forwarding to see the gateway app.
381381

@@ -412,4 +412,4 @@ Apache 2.0, see [LICENSE](LICENSE).
412412
[blog-spring-cloud-config]: https://developer.okta.com/blog/2019/05/23/java-microservices-spring-cloud-config
413413
[blog-spring-cloud-gateway]: https://developer.okta.com/blog/2019/08/28/reactive-microservices-spring-cloud-gateway
414414
[blog-reactive-jhipster]: https://developer.okta.com/blog/2021/01/20/reactive-java-microservices
415-
[blog-k8s]: https://developer.okta.com/blog/2021/06/01/kubernetes-java-spring-boot
415+
[blog-k8s]: https://developer.okta.com/blog/2021/06/01/kubernetes-spring-boot-jhipster

jhipster-k8s/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ You will be prompted with several questions. The answers will be pre-populated f
3434

3535
- Type of application: **Microservice application**
3636
- Root directory: **../**
37-
- Which applications? <select all>
37+
- Which applications? `<select all>`
3838
- Set up monitoring? **No**
3939
- Which applications with clustered databases? select **store**
40-
- Admin password for JHipster Registry: <generate one>
40+
- Admin password for JHipster Registry: `<generate one>`
4141
- Kubernetes namespace: **demo**
42-
- Docker repository name: <your docker hub username>
42+
- Docker repository name: `<your docker hub username>`
4343
- Command to push Docker image: `docker push`
4444
- Enable Istio? **No**
4545
- Kubernetes service type? **LoadBalancer**
4646
- Use dynamic storage provisioning? **Yes**
47-
- Use a specific storage class? <leave empty>
47+
- Use a specific storage class? `<leave empty>`
4848

4949
## Install Minikube to Run Kubernetes Locally
5050

@@ -54,7 +54,7 @@ If you have Docker installed, you can run Kubernetes locally with Minikube. Run
5454
minikube --memory 8g --cpus 8 start
5555
```
5656

57-
Now, you need to build Docker images for each app. In the {`gateway`, `blog`, `store` } directories, run the following Gradle command (where `<image-name>` is `gateway`, `store`, or `blog`).
57+
Build Docker images for each app. In the {`gateway`, `blog`, `store` } directories, run the following Gradle command (where `<image-name>` is `gateway`, `store`, or `blog`).
5858

5959
```shell
6060
./gradlew bootJar -Pprod jib -Djib.to.image=<docker-repo-name>/<image-name>
@@ -147,7 +147,7 @@ You can use port-forwarding to see the JHipster Registry.
147147
kubectl port-forward svc/jhipster-registry -n default 8761
148148
```
149149
150-
Open a browser and navigate to `\http://localhost:8761`. You'll need to sign in with your Okta credentials.
150+
Open a browser and navigate to `http://localhost:8761`. You'll need to sign in with your Okta credentials.
151151
152152
Once all is green, use port-forwarding to see the gateway app.
153153
@@ -161,7 +161,7 @@ Please read the [Kubernetes to the Cloud with Spring Boot and JHipster][blog] fo
161161
162162
## Links
163163
164-
These examples uses the following open source libraries:
164+
This example uses the following open source libraries:
165165
166166
* [Spring Boot](https://spring.io/projects/spring-boot)
167167
* [Spring Cloud](https://spring.io/projects/spring-cloud)
@@ -179,4 +179,4 @@ Please post any questions as comments on [this example's blog post][blog], or on
179179
180180
Apache 2.0, see [LICENSE](LICENSE).
181181
182-
[blog]: https://developer.okta.com/blog/2021/06/01/kubernetes-java-spring-boot
182+
[blog]: https://developer.okta.com/blog/2021/06/01/kubernetes-spring-boot-jhipster

0 commit comments

Comments
 (0)