Update README.md
This commit is contained in:
Родитель
57a78d2e87
Коммит
c99468367a
34
README.md
34
README.md
|
@ -21,7 +21,7 @@ kubectl get pods -n kube-system --selector app.kubernetes.io/name=openservicemes
|
|||
kubectl get services -n kube-system --selector app.kubernetes.io/name=openservicemesh.io
|
||||
|
||||
```
|
||||
|
||||
![Picture01.png]
|
||||
### Installing Prometheus via helm chart kube-prometheus-stack
|
||||
|
||||
* Execute the following
|
||||
|
@ -35,6 +35,13 @@ prometheus-community/kube-prometheus-stack -f https://raw.githubusercontent.com/
|
|||
--create-namespace
|
||||
|
||||
```
|
||||
* Check that everything is running
|
||||
|
||||
```
|
||||
kubectl --namespace monitoring get pods -l "release=prometheus"
|
||||
|
||||
```
|
||||
![Picture02.png]
|
||||
|
||||
### Disabled metrics scapping from components that AKS don't expose.
|
||||
|
||||
|
@ -55,14 +62,17 @@ prometheus-community/kube-prometheus-stack -f https://raw.githubusercontent.com/
|
|||
* Execute the following
|
||||
|
||||
```
|
||||
OSM_VERSION=v0.11.1
|
||||
OSM_VERSION=v1.0.0
|
||||
curl -sL "https://github.com/openservicemesh/osm/releases/download/$OSM_VERSION/osm-$OSM_VERSION-linux-amd64.tar.gz" | tar -vxzf -
|
||||
sudo mv ./linux-amd64/osm /usr/local/bin/osm
|
||||
sudo chmod +x /usr/local/bin/osm
|
||||
sleep 5s
|
||||
osm version
|
||||
|
||||
```
|
||||
|
||||
![Picture03.png]
|
||||
### Adding namespace to mesh and enabling OSM metrics
|
||||
|
||||
* Execute the following
|
||||
|
||||
```
|
||||
|
@ -73,14 +83,14 @@ sleep 5s
|
|||
kubectl rollout restart deployment order-web -n order-portal
|
||||
|
||||
```
|
||||
|
||||
![Picture04.png]
|
||||
### Portforward Prometheus in another new terminal and open http://localhost:9090 :
|
||||
```
|
||||
kubectl port-forward svc/prometheus-kube-prometheus-prometheus -n monitoring 9090
|
||||
kubectl port-forward svc/prometheus-kube-prometheus-prometheus -n monitoring 9090 &
|
||||
```
|
||||
|
||||
### Query to run in Prometheus to pull http metrics
|
||||
|
||||
### Query to run in Prometheus to pull http metrics:
|
||||
![Picture05.png]
|
||||
```
|
||||
envoy_cluster_upstream_rq_xx{envoy_response_code_class="2"}
|
||||
|
||||
|
@ -88,7 +98,7 @@ envoy_cluster_upstream_rq_xx{envoy_response_code_class="2"}
|
|||
|
||||
### Installing Contour in AKS:
|
||||
|
||||
link[https://projectcontour.io/getting-started/#option-2-helm]
|
||||
[link](https://projectcontour.io/getting-started/#option-2-helm)
|
||||
```
|
||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
helm repo update
|
||||
|
@ -96,7 +106,7 @@ helm install mycontour bitnami/contour --namespace projectcontour --create-names
|
|||
|
||||
kubectl -n projectcontour get po,svc
|
||||
```
|
||||
|
||||
![Picture06.png]
|
||||
### Create HTTPProxy and ingressBackend for Order-web application
|
||||
#### Get the public/External IP of the Azure loadbalancer created for the Contour Services
|
||||
```
|
||||
|
@ -139,17 +149,17 @@ spec:
|
|||
EOF
|
||||
|
||||
```
|
||||
|
||||
![Picture07.png]
|
||||
### Create KEDA ScaledObject based on Query
|
||||
|
||||
```
|
||||
kubectl apply -f https://raw.githubusercontent.com/Azure/aks-advanced-autoscaling/module4/keda_order_http.yaml
|
||||
```
|
||||
|
||||
|
||||
![Picture08.png]
|
||||
### Watch the pods been created:
|
||||
|
||||
```
|
||||
kubectl get pods -n order-portal -w
|
||||
```
|
||||
|
||||
![Picture09.png]
|
||||
|
|
Загрузка…
Ссылка в новой задаче