Skip to content

Commit 4300468

Browse files
committed
[Edge AI Suite] Metro apps: Change helm document to pick system proxies
automaitcally Signed-off-by: Katakol, Rohit <rohit.katakol@intel.com>
1 parent 6001533 commit 4300468

File tree

2 files changed

+32
-14
lines changed

2 files changed

+32
-14
lines changed

metro-ai-suite/metro-vision-ai-app-recipe/loitering-detection/docs/user-guide/get-started/deploy-with-helm.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,12 @@ cd ..
6767
1. Update the following fields in `values.yaml` file in the Helm chart:
6868

6969
```bash
70-
# Edit the values.yml file to add proxy configuration
70+
# Edit the values.yml file to update configuration
7171
nano ./loitering-detection/helm-chart/values.yaml
7272
```
7373

7474
``` sh
7575
HOST_IP: # replace localhost with system IP example: HOST_IP: 10.100.100.100
76-
http_proxy: # example: http_proxy: http://proxy.example.com:891
77-
https_proxy: # example: http_proxy: http://proxy.example.com:891
7876
webrtcturnserver:
7977
username: # example: username: myuser
8078
password: # example: password: mypassword
@@ -88,19 +86,30 @@ deliver video streams that are connected to AI pipelines to improve the classifi
8886
recognition accuracy. The following demonstrates running multiple AI pipelines and
8987
visualization in the Grafana.
9088

91-
1. Deploy Helm chart
89+
1. Copy system proxies
9290

9391
```sh
94-
helm install loitering-detection ./loitering-detection/helm-chart -n ld --create-namespace
92+
cat <<EOF > proxy-values.yaml
93+
env:
94+
http_proxy: "$http_proxy"
95+
https_proxy: "$https_proxy"
96+
no_proxy: "$no_proxy"
97+
EOF
9598
```
9699
97-
2. Wait for all pods to be ready:
100+
2. Deploy Helm chart
101+
102+
```sh
103+
helm install loitering-detection ./loitering-detection/helm-chart -n ld --create-namespace -f proxy-values.yaml
104+
```
105+
106+
3. Wait for all pods to be ready:
98107
99108
```sh
100109
kubectl wait --for=condition=ready pod --all -n ld --timeout=300s
101110
```
102111
103-
3. Start the application with the Client URL (cURL) command by replacing the <HOST_IP> with
112+
4. Start the application with the Client URL (cURL) command by replacing the <HOST_IP> with
104113
the Node IP. (Total 8 places)
105114
106115
``` sh

metro-ai-suite/metro-vision-ai-app-recipe/smart-parking/docs/user-guide/get-started/deploy-with-helm.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,12 @@ cd ..
6161
1. Update the below fields in `values.yaml` file in the Helm chart
6262

6363
```bash
64-
# Edit the values.yml file to add proxy configuration
64+
# Edit the values.yml file to update configuration
6565
nano ./smart-parking/helm-chart/values.yaml
6666
```
6767

6868
``` sh
6969
HOST_IP: # replace localhost with system IP example: HOST_IP: 10.100.100.100
70-
http_proxy: # example: http_proxy: http://proxy.example.com:891
71-
https_proxy: # example: http_proxy: http://proxy.example.com:891
7270
webrtcturnserver:
7371
username: # example: username: myuser
7472
password: # example: password: mypassword
@@ -80,19 +78,30 @@ cd ..
8078

8179
Follow this procedure to run the sample application. In a typical deployment, multiple cameras deliver video streams that are connected to AI pipelines to improve the classification and recognition accuracy. The following demonstrates running multiple AI pipelines and visualization in the Grafana.
8280

83-
1. Deploy Helm chart
81+
1. Copy system proxies
8482

8583
```sh
86-
helm install smart-parking ./smart-parking/helm-chart -n sp --create-namespace
84+
cat <<EOF > proxy-values.yaml
85+
env:
86+
http_proxy: "$http_proxy"
87+
https_proxy: "$https_proxy"
88+
no_proxy: "$no_proxy"
89+
EOF
8790
```
8891
89-
2. Wait for all pods to be ready:
92+
2. Deploy Helm chart
93+
94+
```sh
95+
helm install smart-parking ./smart-parking/helm-chart -n sp --create-namespace -f proxy-values.yaml
96+
```
97+
98+
3. Wait for all pods to be ready:
9099
91100
```sh
92101
kubectl wait --for=condition=ready pod --all -n sp --timeout=300s
93102
```
94103
95-
3. Start the application with the Client URL (cURL) command by replacing the <HOST_IP> with the Node IP. (Total 8 places)
104+
4. Start the application with the Client URL (cURL) command by replacing the <HOST_IP> with the Node IP. (Total 8 places)
96105
97106
``` sh
98107
#!/bin/bash

0 commit comments

Comments
 (0)