Skip to content

Commit

Permalink
istio/aks: add result images to the document and improve content (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
tungbq authored Mar 24, 2024
2 parents 1123c04 + 2ea67bb commit 40e38fe
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 5 deletions.
32 changes: 31 additions & 1 deletion projects/aks-istio-application/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,17 @@ export GATEWAY_URL_EXTERNAL=$INGRESS_HOST_EXTERNAL:$INGRESS_PORT_EXTERNAL
echo "http://$GATEWAY_URL_EXTERNAL/"
```

At this point we could visit the public application frontend page via Gateway URL: http://$GATEWAY_URL_EXTERNAL/, result looks like:
![gateway-url-external](./assets/connect_to_aks_external_gateway.png)

### 5.4-Test the frontend page (optional)

- Run this script to simulate the external access to the frontend page

```bash
$DEVOPS_PROJECT_PATH/projects/aks-istio-application/scripts/frontend_load_testing.sh $GATEWAY_URL_EXTERNAL
```

## 6-Deploy the Prometheus monitoring stack

### 6.1-Deploy aks-istio-system
Expand Down Expand Up @@ -167,7 +178,15 @@ Now we can login to http://localhost:4000 (The default username/password for Gra
$DEVOPS_PROJECT_PATH/projects/aks-istio-application/scripts/grafana-add-istio-dashboard.sh
```

- Access Grafana: http://localhost:4000/ to verify and expore the Istio dashboard
### 6.4-Explore the Grafana dashboard

Access Grafana: http://localhost:4000/ to verify and expore the Istio dashboard

- Grafana Istio Dashboard list
![grafana_istio_dashboard](./assets/grafana_istio_dashboard.png)

- Grafana Istio Service Dashboard
![grafana_istio_service_dashboard](./assets/grafana_istio_service_dashboard.png)

## 7-Deploy Kiali

Expand Down Expand Up @@ -207,6 +226,16 @@ kubectl port-forward svc/kiali -n aks-istio-system 20001:20001

Now we can visit: http://localhost:20001 to explore the Kiali

### 7.4-Explore the Kiali UI

Now we can visualize our application/service graph with Kiali

- Kiali Service Graph
![grafana_istio_dashboard](./assets/kiali_visualize_all.png)

- Kiali App Graph with response time
![grafana_istio_dashboard](./assets/kiali_visualize_app_graph.png)

## 8-Clean up resource

- Destroy the cluster, follow the `Delete AKS resources` of project [terraform-aks-cluster](../terraform-aks-cluster/)
Expand All @@ -218,6 +247,7 @@ For any issues, refer to [troubleshooting guide](./troubleshooting.md)
## 10-Related document

- aks: https://learn.microsoft.com/en-us/azure/aks/istio-deploy-ingress
- aks/istio: https://github.com/Azure-Samples/aks-store-demo/tree/main/manifests/istio
- kiali: https://github.com/kiali/kiali.io/commit/306fb8ac1d23928ad313c2511f04663c1e4f53b4
- kiali: https://github.com/kiali/kiali/issues/4703
- kiali: https://kiali.io/docs/installation/installation-guide/install-with-helm/
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,9 @@ spec:
http:
- match:
- uri:
exact: /
prefix: ''
route:
- destination:
host: "frontend.default.svc.cluster.local"
# host: frontend
port:
number: 80
3 changes: 3 additions & 0 deletions projects/aks-istio-application/poc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Proof of concepts

This is work in progress, and is not ready to use. Just for reference
35 changes: 35 additions & 0 deletions projects/aks-istio-application/poc/aks_istio.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: store-front-gateway-external
namespace: pets
spec:
selector:
istio: aks-istio-ingressgateway-external
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: store-front-vs-external
namespace: pets
spec:
hosts:
- "*"
gateways:
- store-front-gateway-external
http:
- match:
- uri:
prefix: ''
route:
- destination:
host: store-front.pets.svc.cluster.local
port:
number: 80
13 changes: 13 additions & 0 deletions projects/aks-istio-application/scripts/frontend_load_testing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

PAGE_URL=$1
# To get page, run: `kubectl get svc aks-istio-ingressgateway-external -n aks-istio-ingress`
## Usage: ./frontend_load_testing.sh 1.2.3.4

echo "Testing frontend page workload..."
for i in $(seq 1 1000); do
echo "Try number $i..."
curl -s -o /dev/null "$PAGE_URL"
sleep 1
done
echo "Testing frontend page completed!"
2 changes: 0 additions & 2 deletions projects/terraform-aks-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ az account set --subscription $subscription_id
### Create a service principal

```bash
chmod +x specify-service-cred.sh

# Run the scipt with you service name and subscription ID
## your_subscription_id: input your target Subscription ID
## your_service_principal_name: input your target Service Principal Name
Expand Down

0 comments on commit 40e38fe

Please sign in to comment.