Skip to content

Commit 7d1fe1d

Browse files
author
pmasl
committed
2 parents 51a6e8a + 2075164 commit 7d1fe1d

18 files changed

Lines changed: 1518 additions & 20 deletions

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ When prompted, provide your input for Azure subscription ID, Azure resource grou
4545
- vm_size - we recommend to use a VM size to accommodate your workload. For an optimal experience while you are validating basic scenarios, we recommend at least 8 vCPUs and 64GB memory across all agent nodes in the cluster. The script uses **Standard_L8s** as default. A default size configuration also uses about 24 disks for persistent volume claims across all components.
4646
- aks_node_count - this is the number of the worker nodes for the AKS cluster, excluding master node. The script is using a default of 1 agent node. This is the minimum required for this VM size to have enough resources and disks to provision all the necessary persistent volumes.
4747
- cluster_name - this value is used for both AKS cluster and SQL big data cluster created on top of AKS. Note that the name of the SQL big data cluster is going to be a Kubernetes namespace
48-
- password - same value is going to be used for all accounts that require user password input: SQL Server master instance SA account, controller user and Knox user
49-
- controller_username - this is the username for the cluster admin account
48+
- password - same value is going to be used for all accounts that require user password input: SQL Server master instance account created for the below **username**, controller user and Knox **root** user
49+
- username - this is the username for the accounts provisioned during deployment for the controller admin account and SQL Server master instance account. Note that **sa** SQL Server account is disabled automatically for you, as a best practice. Username for Knox gateway account is going to be **root**.

samples/features/sql-big-data-cluster/deployment/aks/deploy-sql-big-data-aks.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def executeCmd (cmd):
4040

4141
#This password will be use for Controller user, Knox user and SQL Server Master SA accounts
4242
#
43-
CONTROLLER_USERNAME=input("Provide username to be used for Controller user - Press ENTER for using `admin`:").strip() or "admin"
44-
PASSWORD = getpass.getpass("Provide password to be used for Controller user, Knox user and SQL Server Master SA accounts - Press ENTER for using `MySQLBigData2019`").strip() or "MySQLBigData2019"
43+
AZDATA_USERNAME=input("Provide username to be used for Controller and SQL Server master accounts - Press ENTER for using `admin`:").strip() or "admin"
44+
AZDATA_PASSWORD = getpass.getpass("Provide password to be used for Controller user, Knox user (root) and SQL Server Master accounts - Press ENTER for using `MySQLBigData2019`").strip() or "MySQLBigData2019"
4545

4646
# Docker registry details
4747
# Use this only if you are using a private registry different than mcr. If so, make sure you are also setting the environment variables for DOCKER_USERNAME and DOCKER_PASSWORD
@@ -50,10 +50,8 @@ def executeCmd (cmd):
5050
# DOCKER_IMAGE_TAG="<your Docker image tag>"
5151

5252
print ('Setting environment variables')
53-
os.environ['MSSQL_SA_PASSWORD'] = PASSWORD
54-
os.environ['CONTROLLER_USERNAME'] = CONTROLLER_USERNAME
55-
os.environ['CONTROLLER_PASSWORD'] = PASSWORD
56-
os.environ['KNOX_PASSWORD'] = PASSWORD
53+
os.environ['AZDATA_PASSWORD'] = AZDATA_PASSWORD
54+
os.environ['AZDATA_USERNAME'] = AZDATA_USERNAME
5755
# Use this only if you are using a private registry different than mcr. If so, you must set the environment variables for DOCKER_USERNAME and DOCKER_PASSWORD
5856
# os.environ['DOCKER_USERNAME']=DOCKER_USERNAME
5957
# os.environ['DOCKER_PASSWORD']=DOCKER_PASSWORD
@@ -68,7 +66,7 @@ def executeCmd (cmd):
6866
executeCmd (command)
6967

7068
print("Creating AKS cluster: "+CLUSTER_NAME)
71-
command = "az aks create --name "+CLUSTER_NAME+" --resource-group "+GROUP_NAME+" --generate-ssh-keys --node-vm-size "+VM_SIZE+" --node-count "+AKS_NODE_COUNT+" --kubernetes-version 1.13.10"
69+
command = "az aks create --name "+CLUSTER_NAME+" --resource-group "+GROUP_NAME+" --generate-ssh-keys --node-vm-size "+VM_SIZE+" --node-count "+AKS_NODE_COUNT
7270
executeCmd (command)
7371

7472
command = "az aks get-credentials --overwrite-existing --name "+CLUSTER_NAME+" --resource-group "+GROUP_NAME+" --admin"

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm/setup-bdc.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,12 @@ RETRY_INTERVAL=5
4646
#
4747
export DOCKER_REGISTRY="mcr.microsoft.com"
4848
export DOCKER_REPOSITORY="mssql/bdc"
49-
export DOCKER_TAG="2019-RC1-ubuntu"
49+
export DOCKER_TAG="2019-GDR1-ubuntu-16.04"
5050

5151
# Variables used for azdata cluster creation.
5252
#
53-
export CONTROLLER_USERNAME=admin
54-
export CONTROLLER_PASSWORD=$password
55-
export MSSQL_SA_PASSWORD=$password
56-
export KNOX_PASSWORD=$password
53+
export AZDATA_USERNAME=admin
54+
export AZDATA_PASSWORD=$password
5755
export ACCEPT_EULA=yes
5856
export CLUSTER_NAME=mssql-cluster
5957
export STORAGE_CLASS=local-storage
@@ -81,7 +79,8 @@ IMAGES=(
8179
mssql-server
8280
mssql-server-controller
8381
mssql-server-data
84-
mssql-server-ha
82+
mssql-ha-operator
83+
mssql-ha-supervisor
8584
mssql-service-proxy
8685
mssql-ssis-app-runtime
8786
)
@@ -125,6 +124,9 @@ usermod --append --groups docker $USER
125124
#
126125
apt-get install -q -y python3
127126
apt-get install -q -y python3-pip
127+
apt-get install -y libkrb5-dev
128+
apt-get install -y libsqlite3-dev
129+
apt-get install -y unixodbc-dev
128130

129131
pip3 install requests --upgrade
130132

samples/features/sql-big-data-cluster/deployment/offline/push-bdc-images-to-custom-private-repo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ def execute_cmd (cmd):
4747
'mssql-server'
4848
'mssql-server-controller'
4949
'mssql-server-data'
50-
'mssql-server-ha'
50+
'mssql-ha-operator'
51+
'mssql-ha-supervisor'
5152
'mssql-service-proxy'
5253
'mssql-ssis-app-runtime']
5354

0 commit comments

Comments
 (0)