Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit f05bef9

Browse files
Updates to deployment quickstart
1 parent 5311b28 commit f05bef9

1 file changed

Lines changed: 38 additions & 54 deletions

File tree

docs/aris/quickstart-sql-server-aris-deploy.md

Lines changed: 38 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,16 @@ ms.prod: sql
1111

1212
# Quickstart: Deploy SQL Server Aris on Kubernetes
1313

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+
1517

1618
## Prerequisites
1719

1820
This quickstart requires that you have already configured a Kubernetes cluster. For more information, see the Kubernetes section in the deployment guide:
1921

2022
- [Configure a Kubernetes cluster](sql-server-aris-deployment-guidance.md#kubernetes).
2123

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:
29-
30-
```bash
31-
git clone https://github.com/Microsoft/sqlservervnext.git
32-
```
3324

3425
## Verify kubernetes configuration
3526

@@ -39,11 +30,13 @@ Execute the below kubectl command to view the cluster configuration. Ensure that
3930
kubectl config view
4031
```
4132

42-
## Define environment variables
33+
## Install mssqlctl CLI management tool for Aris
4334

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
4536

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.
4740

4841
> [!IMPORTANT]
4942
> 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
5346
> [!NOTE]
5447
> For the CTP 2.0 release do not change the default ports.
5548
49+
Initialize the following environment variables, they are required for deploying the Aris cluster:
50+
5651
### Windows
5752

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:
5954

6055
```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>
6257
SET CLUSTER_NODE_REPLICAS=<number_of_nodes_excluding_master>
6358
6459
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>
6661
6762
SET DOCKER_REGISTRY=private-repo.microsoft.com
6863
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)>
7564
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>
8066
8167
SET MASTER_SQL_PORT=31433
8268
SET KNOX_PORT=30443
8369
SET RANGER_PORT=30680
8470
```
8571

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:
8773

8874
```cmd
8975
SET DOCKER_IMAGE_POLICY=IfNotPresent
9076
```
9177

9278
### Linux
9379

94-
Navigate to the **CTP1.8/kube/deployment/mssql-data-pool** folder. Initialize the following environment variables:
80+
Initialize the following environment variables:
9581

9682
```bash
97-
export CLUSTER_PLATFORM=minikube or acs (or aks in future, but not this release)
83+
export CLUSTER_PLATFORM=<minikube or acs or aks>
9884
export CLUSTER_NODE_REPLICAS=<number_of_nodes_excluding_master>
9985

10086
export CONTROLLER_USERNAME=<controller_admin_name – can be anything>
101-
export CONTROLLER_PASSWORD=<controller_admin_password – can be anything>
87+
export CONTROLLER_PASSWORD=<controller_admin_password – can be anything, password complexity compliant>
10288

10389
export DOCKER_REGISTRY=private-repo.microsoft.com
10490
export DOCKER_REPOSITORY=mssql-private-preview
105-
export DOCKER_USERNAME=<your_user_name>
106-
export DOCKER_PASSWORD=<your_password>
107-
export DOCKER_EMAIL=<your_email>
108-
export DOCKER_PRIVATE_REGISTRY="1"
10991

110-
export HADOOP_IMAGE=<mssql-hadoop (Default) or mssql-hadoop-dbr (Databricks)>
111-
export MSSQL_SA_PASSWORD=<sa_password_of_sql_instances>
112-
export MSSQL_SECURITY_SA_PASSWORD=<sa_password_of_internal_sql_instance>
113-
export MSSQL_IMPORT_PASSWORD=<import_account_password_of_sql_instances>
114-
export MSSQL_EXTERNAL_PASSWORD=<external_account_password_of_sql_instances>
92+
export MSSQL_SA_PASSWORD=<sa_password_of_master_sql_instances>
11593

11694
export MASTER_SQL_PORT=31433
11795
export KNOX_PORT=30443
11896
export RANGER_PORT=30680
11997
```
12098

121-
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:
122100

123101
```bash
124102
export DOCKER_IMAGE_POLICY=IfNotPresent
@@ -133,36 +111,42 @@ python mssqlctl.py create cluster <name of your cluster>
133111
```
134112

135113
> [!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.
137115
138-
You can ignore the initial error messages about various resources not being found. This step can take several minutes to run.
139116

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+
```
141124

125+
You can see a more granular status and configuration for each pod by runnnig:
142126
```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>
145128
```
146129

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.
148131

149132
## <a id="masterip"></a> Get the master instance IP address
150133

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.
152135

153-
### ACS
136+
### ACS/AKS
154137

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:
156139

157140
```bash
158141
kubectl get svc service-master-lb -n <name of your cluster>
142+
kubectl get svc service-security-lb -n <name of your cluster>
159143
```
160144

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.
162146

163147
### Minikube
164148

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.
166150

167151
```bash
168152
minikube ip
@@ -173,4 +157,4 @@ minikube ip
173157
Now that SQL Server Aris is deployed, try out some of the new capabilities:
174158

175159
> [!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

Comments
 (0)