Skip to content

Commit 335170e

Browse files
authored
Updates (#960)
1 parent e344b59 commit 335170e

File tree

9 files changed

+87
-12
lines changed

9 files changed

+87
-12
lines changed

cloudbank-v4/README.md

Lines changed: 87 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CloudBank Version 4 - 8/30/24
1+
# CloudBank Version 4 - 9/26/24
22

33
**NOTE:** This document and application is WIP.
44

@@ -195,8 +195,7 @@ create-autoscaler --service-name transfer --min-replicas 1 --max-replicas 4 --cp
195195
196196
## OpenAPI
197197
198-
All services have OpenAPI documentation and can be reached via the Swagger UI. For example after starting a port forward to anyone of the services you can the URL http://localhost:*port*/swagger-ui/index.html to see the documentation. Replace *port* with the port used in the port forward command.
199-
For example, to see the API documentation for the `customer32` application do the following:
198+
All services have OpenAPI documentation and can be reached via the Swagger UI. For example after starting a port forward to anyone of the services you can the URL ![OPenAPI](http://localhost:*port*/)swagger-ui/index.html to see the documentation. Replace *port* with the port used in the port forward command. For example, to see the API documentation for the `customer32` application do the following:
200199
201200
```shell
202201
kubectl port-forward -n application svc/customer32 8080
@@ -216,7 +215,7 @@ This is an example of the `customer32` application:
216215
kubectl -n ingress-nginx get service ingress-nginx-controller
217216
```
218217
219-
Result. Create a variable called IP with the value of the EXTERNAL-IP it will be used in the tests.
218+
Result. Create a variable called IP with the value of the **EXTERNAL-IP** it will be used in the tests.
220219
221220
```text
222221
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
@@ -275,7 +274,7 @@ This is an example of the `customer32` application:
275274
1. POST endpoint to create a customer.
276275
277276
```shell
278-
curl -i -X POST 'http://$IP/api/v1/customer' -H 'Content-Type: application/json' -d '{"customerId": "bobsmith", "customerName": "Bob Smith", "customerEmail": "bob@smith.com"}'
277+
curl -i -X POST -H 'Content-Type: application/json' -d '{"customerId": "bobsmith", "customerName": "Bob Smith", "customerEmail": "bob@smith.com"}' http://$IP/api/v1/customer
279278
```
280279
281280
Should return the URI of the created object:
@@ -495,42 +494,118 @@ This is an example of the `customer32` application:
495494
496495
## Observability and Tracing
497496
498-
1. Check Eureka dashbaord
497+
1. Check the ServiceOPS Center
498+
499+
1. Get the external IP
500+
501+
```shell
502+
kubectl -n ingress-nginx get service ingress-nginx-controller
503+
```
504+
505+
1. Get the *obaas-admin* user password
506+
507+
```shell
508+
kubectl get secret -n azn-server oractl-passwords -o jsonpath='{.data.admin}' | base64 -d
509+
```
510+
511+
1. Login into [ServiceOPS Dashboard](https://EXTERNAL-IP/soc)
512+
513+
![ServiceOPS Login](images/serviceops_login.png " ")
514+
515+
1. Explore the dashboard
516+
517+
![ServiceOPS Dashboard](images/serviceops_dashboard.png " ")
518+
519+
1. Check Eureka dashboard
499520
500521
1. Port forward
501522
502523
```shell
503524
kubectl -n eureka port-forward svc/eureka 8761
504525
```
505526
506-
1. Open <http://localhost:8761> in a browser and verify that all services are registered
527+
1. Open [Eureka Dashboard](http://localhost:8761) in a browser and verify that all services are registered
528+
529+
![Eureka Dashboard](images/eureka.png " ")
530+
531+
1. Check Admin Server dashboard
532+
533+
1. Port forward
534+
535+
```shell
536+
kubectl port-forward -n admin-server svc/admin-server 8989
537+
```
538+
539+
1. Open [Admin Server Dashboard](http://localhost:8989) in a browser and verify that all services are registered
507540
508-
![Eureka Dashboard Login](images/eureka.png " ")
541+
![Admin Server Dashboard](images/admin_server.png " ")
509542
510-
1. Check Jaeger dashbaord
543+
1. Check Jaeger dashboard
511544
512545
1. Port forward
513546
514547
```shell
515548
kubectl -n observability port-forward svc/jaegertracing-query 16686
516549
```
517550
518-
1. Open <http://localhost:16686> in a browser and verify that all services are registered
551+
1. Open [Jaeger Dashboard](http://localhost:16686) in a browser and verify that all services are registered
519552
520-
![Jaeger Dashboard Login](images/jaeger.png " ")
553+
![Jaeger Dashboard](images/jaeger.png " ")
521554
522555
1. Choose `customer` Service and click *Find Traces*
523556
524557
![Customer](images/j-traces.png " ")
525558
526559
1. Check the Grafana Dashboard
527560
561+
1, Get the *admin* password for Grafana
562+
563+
```shell
564+
kubectl get secret -n grafana grafana-dashboard-authn -o jsonpath='{.data.password}' | base64 -d
565+
```
566+
528567
1. Port forward
529568
530569
```shell
531570
kubectl -n grafana port-forward svc/grafana 7070:80
532571
```
533572
534-
1. Open <http://localhost:7070/grafana/> in a browser and verify that all services are registered and you can see some data (you may have to select the dashboard you want to see)
573+
1. Open [Grafana Login](http://localhost:7070/grafana/) in a browser and login with the username *admin* and the password you have retrieved.
574+
575+
![Grafana Login](images/grafana_login.png " ")
576+
577+
1. Explore the pre-installed dashboards.
535578
536579
![Grafana](images/grafana-dashboard.png " ")
580+
581+
1. Check Prometheus dashboard
582+
583+
1. Port forward
584+
585+
```shell
586+
kubectl port-forward -n prometheus svc/prometheus 9090
587+
```
588+
589+
1. Open [Prometheus Dashboard](http://localhost:9090)
590+
591+
![Prometheus Dashboard](images/prometheus.png " ")
592+
593+
1. Select `application_ready_time_seconds` in the search bar and click *Execute*. You should get a table back with some data about the cloudbank application deployed.
594+
595+
![Prometheus DAta](images/prom_data.png " ")
596+
597+
1. Check Hashicorp Vault dashboard (Development mode)
598+
599+
1. Port forward
600+
601+
```shell
602+
kubectl port-forward -n vault svc/vault 8200
603+
```
604+
605+
1. Open [Hashicorp Vault Login](https://localhost:8200) and login using the Token method with the `root`
606+
607+
![Vault Login](images/vault_login.png " ")
608+
609+
1. You should now see the Hashicorp Vault dashboard
610+
611+
![Vault Dashboard](images/vault_dashboard.png " ")

cloudbank-v4/images/admin_server.png

126 KB
Loading

cloudbank-v4/images/grafana_login.png

657 KB
Loading

cloudbank-v4/images/prom_data.png

251 KB
Loading

cloudbank-v4/images/prometheus.png

60.9 KB
Loading
171 KB
Loading
80.2 KB
Loading
162 KB
Loading

cloudbank-v4/images/vault_login.png

52.7 KB
Loading

0 commit comments

Comments
 (0)