You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/aris/quickstart-sql-server-aris-deploy.md
+38-54Lines changed: 38 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,25 +11,16 @@ ms.prod: sql
11
11
12
12
# Quickstart: Deploy SQL Server Aris on Kubernetes
13
13
14
-
In this quickstart, you will install SQL Server Aris on Kubernetes.
14
+
In this quickstart, you will install SQL Server Aris on Kubernetes in a default configuration suitable for dev/test environments. Here is the list of environment variables and their default values you can update to customize your cluster configuration:
15
+
TBD
16
+
15
17
16
18
## Prerequisites
17
19
18
20
This quickstart requires that you have already configured a Kubernetes cluster. For more information, see the Kubernetes section in the deployment guide:
19
21
20
22
-[Configure a Kubernetes cluster](sql-server-aris-deployment-guidance.md#kubernetes).
21
23
22
-
## Clone the deployment project
23
-
24
-
1. If not already installed, install git locally on [Windows](https://git-for-windows.github.io/), [Linux, or Mac](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git).
25
-
26
-
1. First, in PowerShell, cmd, or a terminal window, navigate to the directory that you want to contain the deployment project files.
27
-
28
-
1. Then, run the following command to clone the files from GitHub to your machine:
@@ -39,11 +30,13 @@ Execute the below kubectl command to view the cluster configuration. Ensure that
39
30
kubectl config view
40
31
```
41
32
42
-
## Define environment variables
33
+
## Install mssqlctl CLI management tool for Aris
43
34
44
-
The deployment commands for SQL Server vNext are slightly different depending on whether you are using Windows or Linux. Choose the steps below depending on which operating system you are using.
35
+
TBD
45
36
46
-
Initialize the following environment variables first. Enter the Docker username and password that have been provided to you.
37
+
## Define environment variables
38
+
39
+
Setting the environment variables required for deploying Aris cluster differs depending on whether you are using Windows or Linux client. Choose the steps below depending on which operating system you are using.
47
40
48
41
> [!IMPORTANT]
49
42
> Make sure you wrap the passwords in double quotes if it contains any special characters.
@@ -53,72 +46,57 @@ Initialize the following environment variables first. Enter the Docker username
53
46
> [!NOTE]
54
47
> For the CTP 2.0 release do not change the default ports.
55
48
49
+
Initialize the following environment variables, they are required for deploying the Aris cluster:
50
+
56
51
### Windows
57
52
58
-
Using a CMD window (not PowerShell), navigate to the **CTP1.8\kube\deployment\mssql-data-pool folder**. Configure the following environment variables:
53
+
Using a CMD window (not PowerShell), configure the following environment variables:
59
54
60
55
```cmd
61
-
SET CLUSTER_PLATFORM=minikube or acs (or aks in future, but not this release)
56
+
SET CLUSTER_PLATFORM=<minikube or acs or aks>
62
57
SET CLUSTER_NODE_REPLICAS=<number_of_nodes_excluding_master>
63
58
64
59
SET CONTROLLER_USERNAME=<controller_admin_name – can be anything>
65
-
SET CONTROLLER_PASSWORD=<controller_admin_password – can be anything>
60
+
SET CONTROLLER_PASSWORD=<controller_admin_password – can be anything, password complexity compliant>
66
61
67
62
SET DOCKER_REGISTRY=private-repo.microsoft.com
68
63
SET DOCKER_REPOSITORY=mssql-private-preview
69
-
SET DOCKER_USERNAME=<your_user_name>
70
-
SET DOCKER_PASSWORD=<your_password>
71
-
SET DOCKER_EMAIL=<your_email>
72
-
SET DOCKER_PRIVATE_REGISTRY="1"
73
-
74
-
SET HADOOP_IMAGE=<mssql-hadoop (Default, Apache Spark) or mssql-hadoop-dbr (Databricks)>
75
64
76
-
SET MSSQL_SA_PASSWORD=<sa_password_of_sql_instances>
77
-
SET MSSQL_SECURITY_SA_PASSWORD=<sa_password_of_internal_sql_instance>
78
-
SET MSSQL_IMPORT_PASSWORD=<import_account_password_of_sql_instances>
79
-
SET MSSQL_EXTERNAL_PASSWORD=<external_account_password_of_sql_instances>
65
+
SET MSSQL_SA_PASSWORD=<sa_password_of_master_sql_instances>
80
66
81
67
SET MASTER_SQL_PORT=31433
82
68
SET KNOX_PORT=30443
83
69
SET RANGER_PORT=30680
84
70
```
85
71
86
-
If you are using ACS, then set the following environment variable also:
72
+
If you are using ACS or AKS, then set the following environment variable also:
87
73
88
74
```cmd
89
75
SET DOCKER_IMAGE_POLICY=IfNotPresent
90
76
```
91
77
92
78
### Linux
93
79
94
-
Navigate to the **CTP1.8/kube/deployment/mssql-data-pool** folder. Initialize the following environment variables:
80
+
Initialize the following environment variables:
95
81
96
82
```bash
97
-
export CLUSTER_PLATFORM=minikube or acs (or aksin future, but not this release)
If you are using ACS, then set the following environment variable also:
99
+
If you are using ACS or AKS, then set the following environment variable also:
122
100
123
101
```bash
124
102
export DOCKER_IMAGE_POLICY=IfNotPresent
@@ -133,36 +111,42 @@ python mssqlctl.py create cluster <name of your cluster>
133
111
```
134
112
135
113
> [!NOTE]
136
-
> The name of your cluster needs to be only lower case alpha-numeric characters, no spaces.
114
+
> The name of your cluster needs to be only lower case alpha-numeric characters, no spaces. All Kubernetes artifacts for the Aris cluster will be created in a namespace with same name as the cluster name specified.
137
115
138
-
You can ignore the initial error messages about various resources not being found. This step can take several minutes to run.
139
116
140
-
While the command window is showing the status, you can check the deployment status by running these commands in a different cmd window:
117
+
The command window will ouput the deployment status. You can also check the deployment status by running these commands in a different cmd window:
118
+
119
+
```bash
120
+
kubectl get all -n <name of your cluster>
121
+
kubectl get pods -n <name of your cluster>
122
+
kubectl get svc -n <name of your cluster>
123
+
```
141
124
125
+
You can see a more granular status and configuration for each pod by runnnig:
142
126
```bash
143
-
kubectl describe pod mssql-data-pool-master-0 -n <name of your cluster>
144
-
kubectl describe pod mssql-data-pool-node-0 -n <name of your cluster
127
+
kubectl describe pod <pod name> -n <name of your cluster>
145
128
```
146
129
147
-
There will probably be multiple data pool pods number 0-n. You can run the above command to see the status of each of them as they are deploying by changing the number at the end.
130
+
Once the Controller pod is running, you can use the Cluster Administration Portal to monitor the deployment. The portal will be launched automatically.
148
131
149
132
## <aid="masterip"></a> Get the master instance IP address
150
133
151
-
After the deployment script has completed successfully, you can obtain the IP address of the SQL Server master instance using the steps outlined below. You will use this IP address and port number 31433 to connect to the SQL Server master instance (for example: **\<ip-address\>,31433**).
134
+
After the deployment script has completed successfully, you can obtain the IP address of the SQL Server master instance using the steps outlined below. You will use this IP address and port number 31433 to connect to the SQL Server master instance (for example: **\<ip-address\>,31433**). Similarly, for the Knox Gateway endpoint. All cluster endpoints are outlined in the Service Endpoints tab in the Cluster Admin Portal as well.
152
135
153
-
### ACS
136
+
### ACS/AKS
154
137
155
-
If you are using ACS, Azure provides the Azure LoadBalancer service to ACS. Run following command:
138
+
If you are using ACS/AKS, Azure provides the Azure LoadBalancer service to ACS. Run following command:
156
139
157
140
```bash
158
141
kubectl get svc service-master-lb -n <name of your cluster>
142
+
kubectl get svc service-security-lb -n <name of your cluster>
159
143
```
160
144
161
-
Look for the **External-IP** value that is assigned to the service. Then, connect to the SQL Server master instance using the IP address at port 31433 (Ex: **\<ip-address\>,31433**).
145
+
Look for the **External-IP** value that is assigned to the service. Then, connect to the SQL Server master instance using the IP address at port 31433 (Ex: **\<ip-address\>,31433**) and to Knox Gateway endpoint using the external-IP for `service-security-lb` service.
162
146
163
147
### Minikube
164
148
165
-
If you are using Minikube, you need to run the following command to get the IP address you need to connect to.
149
+
If you are using Minikube, you need to run the following command to get the IP address you need to connect to. In addition to the IP, specify the port for the endpoint you need to connect to.
166
150
167
151
```bash
168
152
minikube ip
@@ -173,4 +157,4 @@ minikube ip
173
157
Now that SQL Server Aris is deployed, try out some of the new capabilities:
174
158
175
159
> [!div class="nextstepaction"]
176
-
> [Get started with SQL Server Aris](quickstart-sql-server-aris-get-started.md)
160
+
> [Get started with SQL Server Aris](quickstart-sql-server-aris-get-started.md)
0 commit comments