Skip to content

Commit 3726373

Browse files
committed
add readme for azure sql demo
1 parent 29317cd commit 3726373

File tree

13 files changed

+49
-0
lines changed

13 files changed

+49
-0
lines changed

azure-votes-sql/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Azure SQL Votes Demo App
2+
3+
## Build the Docker Image
4+
5+
```
6+
docker build -t your_registry.com/your_org_or_user/sqldemo:1
7+
docker push your_registry.com/your_org_or_user/sqldemo:1
8+
```
9+
10+
## Deploy Demo App
11+
12+
```
13+
helm upgrade --install sqldemo charts/azure-sql-demo \
14+
--set resourceGroupName=some_resource_group \
15+
--set serverName=some_name \
16+
--set databaseName=some_name \
17+
--set region=westus \
18+
--set image=your_registry.com/your_org_or_user/sqldemo:1 \
19+
--set local=true
20+
```
21+
22+
From here you can look at the resources to see when they are done:
23+
24+
```
25+
kubectl get azuresqlfirewallrule
26+
NAME PROVISIONED MESSAGE
27+
saso-sql-fwrule true successfully provisioned
28+
saso-sql-fwrule-local true successfully provisioned
29+
```
30+
31+
This should only take around 3 minutes to be done.
32+
33+
Now run `kubectl get pods`. You should see the demo deployment in a running state.
34+
35+
```
36+
kubectl get pods
37+
NAME READY STATUS RESTARTS AGE
38+
azure-votes-sql-86d66c555b-sjnt2 1/1 Running 4 17m
39+
```
40+
41+
From here you can port-forward to the app and check it out:
42+
43+
```
44+
kubectl port-forward deployment/azure-votes-sql 8080:8080
45+
```
46+
47+
Then visit `http://localhost:8080` in your browser to test.
48+
49+
![image of app](./app.png)

azure-votes-sql/app.png

34.6 KB
Loading

0 commit comments

Comments
 (0)