Skip to content

Commit e9f53b1

Browse files
author
cloudmelon
committed
adjustment
1 parent 6208c50 commit e9f53b1

File tree

3 files changed

+59
-8
lines changed

3 files changed

+59
-8
lines changed

samples/features/sql-big-data-cluster/deployment/private-aks/README.md

Lines changed: 47 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
This repository contains the scripts that you can use to deploy a BDC cluster in Azure Kubernetes Service (AKS) private cluster with advanced networking ( CNI ).
44

55
This repository contains 3 bash scripts :
6-
- deploy-private-aks.sh : You can use it to deploy private AKS cluster with private endpoint, it fits the use case that you need to deploy BDC with a private endpoint with AKS private cluster.
7-
- deploy-private-aks-udr.sh : You can use it to deploy private AKS cluster with private endpoint, it fits the use case that you need to deploy BDC with a private endpoint with AKS private cluster and limit egress traffic with UDR ( User-defined Routes ).
8-
- deploy-private-bdc.sh : You can use it to deploy Big Data Clusters ( BDC ) in private deployment mode on private AKS cluster with or without User-defined routes based on your project requirements.
6+
- **deploy-private-aks.sh** : You can use it to deploy private AKS cluster with private endpoint, it fits the use case that you need to deploy BDC with a private endpoint with AKS private cluster.
7+
- **deploy-private-aks-udr.sh** : You can use it to deploy private AKS cluster with private endpoint, it fits the use case that you need to deploy BDC with a private endpoint with AKS private cluster and limit egress traffic with UDR ( User-defined Routes ).
8+
- **deploy-bdc.sh** : You can use it to deploy Big Data Clusters ( BDC ) in private deployment mode on private AKS cluster with or without User-defined routes based on your project requirements.
99

1010

1111
## Prerequisites
1212

13+
You can run those scripts on the following client envionrment with Linux OS or WSL/WSL2.
14+
1315
The following table lists common big data cluster tools and how to install them:
1416

1517
| Tool | Required | Description | Installation |
@@ -29,10 +31,12 @@ The following table lists common big data cluster tools and how to install them:
2931

3032
## Instructions
3133

32-
1. Download the script on the VM you are planning to use for the deployment
34+
### deploy-private-aks.sh
35+
36+
1. Download the script on the location that you are planning to use for the deployment
3337

3438
``` bash
35-
curl --output setup-bdc.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/private-bdc/ubuntu-single-node-vm/deploy-private-aks.sh
39+
curl --output setup-bdc.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-private-aks.sh
3640
```
3741

3842
2. Make the script executable
@@ -47,5 +51,43 @@ chmod +x deploy-private-aks.sh
4751
sudo ./deploy-private-aks.sh
4852
```
4953

54+
### deploy-private-aks-udr.sh
55+
56+
1. Download the script on the location that you are planning to use for the deployment
57+
58+
``` bash
59+
curl --output setup-bdc.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-private-aks-udr.sh
60+
```
61+
62+
2. Make the script executable
63+
64+
``` bash
65+
chmod +x deploy-private-aks-udr.sh
66+
```
67+
68+
3. Run the script (make sure you are running with sudo)
69+
70+
``` bash
71+
sudo ./deploy-private-aks-udr.sh
72+
```
73+
74+
### deploy-bdc.sh
75+
76+
1. Download the script on the location that you are planning to use for the deployment
77+
78+
``` bash
79+
curl --output setup-bdc.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-bdc.sh
80+
```
81+
82+
2. Make the script executable
5083

84+
``` bash
85+
chmod +x deploy-bdc.sh
86+
```
87+
88+
3. Run the script (make sure you are running with sudo)
89+
90+
``` bash
91+
sudo ./deploy-bdc.sh
92+
```
5193

samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-bdc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ done
1717
#Create BDC custom profile
1818
azdata bdc config init --source aks-dev-test --target private-bdc-aks --force
1919

20-
#Configurations for private BDC deployment
20+
#Configurations for BDC deployment
2121
azdata bdc config replace -c private-bdc-aks/control.json -j "$.spec.docker.imageTag=2019-CU6-ubuntu-16.04"
2222
azdata bdc config replace -c private-bdc-aks/control.json -j "$.spec.storage.data.className=default"
2323
azdata bdc config replace -c private-bdc-aks/control.json -j "$.spec.storage.logs.className=default"

samples/features/sql-big-data-cluster/deployment/private-aks/scripts/deploy-private-aks-udr.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,19 @@ while true; do
88
read -s -p "Your service principles ID: " sp_id
99
echo
1010
read -s -p "Your service principles Password: " sp_pwd
11+
echo
12+
read -s -p "Your Resource Group Name: " resourcegroup
13+
echo
14+
read -s -p "In which region you're deploying " region
1115

1216
done
1317

1418
#Define a set of environment variables to be used in resource creations.
1519

1620
export SUBID=$subscription
1721

18-
export REGION_NAME=northeurope
19-
export RESOURCE_GROUP=private-bdc-rg
22+
export REGION_NAME=$region
23+
export RESOURCE_GROUP=$resourcegroup
2024
export SUBNET_NAME=aks-subnet
2125
export VNET_NAME=bdc-vnet
2226
export AKS_NAME=bdcaksprivatecluster
@@ -28,6 +32,8 @@ export FWROUTE_TABLE_NAME=bdcaks-rt
2832
export FWROUTE_NAME=bdcaksroute
2933
export FWROUTE_NAME_INTERNET=bdcaksrouteinet
3034

35+
#Set Azure subscription current in use
36+
az account set --subscription $subscription
3137

3238
#Create Azure Resource Group
3339
az group create -n $RESOURCE_GROUP -l $REGION_NAME
@@ -134,3 +140,6 @@ az aks create \
134140
--node-vm-size Standard_D13_v2 \
135141
--node-count 2 \
136142
--generate-ssh-keys
143+
144+
145+

0 commit comments

Comments
 (0)