Skip to content

Commit 5c488a4

Browse files
authored
Merge pull request #4 from ananto-msft/private-preview-comments
Addressing comments
2 parents 1cb2a4d + ab49870 commit 5c488a4

File tree

10 files changed

+15
-23
lines changed

10 files changed

+15
-23
lines changed

samples/features/azure-arc-data-controller/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Azure Arc Data Controller cluster
2+
3+
## __[Sample setup and deployment](deployment/)__
4+
This folder contains necessary instruction to setup and deploy sample Azure Arc Data Controller cluster.
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ sudo systemctl reboot
2525
1. Download the script on the VM you are planning to use for the deployment
2626

2727
``` bash
28-
curl --output setup-controller.sh https://raw.githubusercontent.com/ananto-msft/sql-server-samples/master/samples/features/azure-arc-data-controller/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh
28+
curl --output setup-controller.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh
2929
```
3030

3131
2. Make the script executable
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ ip link set flannel.1 down
2828
iptables -F && iptables -t nat -F && iptables -t mangle -F && iptables -X
2929

3030
rm -rf .azdata/
31-
rm -rf bdcdeploy/
3231

3332
# Remove mounts.
3433
#
Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,16 @@ export AZDATA_PRIVATE_PREVIEW_DEB_PACKAGE="https://aka.ms/aadatacontrollerazdata
3131

3232
# Kube version.
3333
#
34-
KUBE_DPKG_VERSION=1.15.0-00
35-
KUBE_VERSION=1.15.0
34+
KUBE_DPKG_VERSION=1.16.3-00
35+
KUBE_VERSION=1.16.3
3636

3737
# Wait for 5 minutes for the cluster to be ready.
3838
#
3939
TIMEOUT=600
4040
RETRY_INTERVAL=5
4141

42-
# Github related contstants
43-
#
44-
GITHUB_AADATACONTROLLER_BRANCH=master
45-
4642
# Variables used for azdata cluster creation.
4743
#
48-
export AZDATA_USERNAME=admin
49-
export AZDATA_PASSWORD=$password
5044

5145
export DOMAIN_SERVICE_ACCOUNT_USERNAME=admin
5246
export DOMAIN_SERVICE_ACCOUNT_PASSWORD=$password
@@ -58,7 +52,7 @@ export MSSQL_SA_PASSWORD=$password
5852
export KNOX_PASSWORD=$password
5953

6054
export ACCEPT_EULA=yes
61-
export CLUSTER_NAME=mssql-cluster
55+
export CLUSTER_NAME=azure-arc-cluster
6256
export PV_COUNT="40"
6357

6458
# Make a directory for installing the scripts and logs.
@@ -69,7 +63,7 @@ cd $AZUREARCDATACONTROLLER_DIR/
6963
touch $LOG_FILE
7064

7165
{
72-
# Install all necessary packages: kuberenetes, docker, python3, python3-pip, request, azdata.
66+
# Install all necessary packages: kuberenetes, docker, request, azdata.
7367
#
7468
echo ""
7569
echo "######################################################################################"
@@ -187,9 +181,9 @@ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
187181
sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
188182
sudo sysctl -w net.ipv6.conf.lo.disable_ipv6=1
189183

190-
echo net.ipv6.conf.all.disable_ipv6=1 > /etc/sysctl.conf
191-
echo net.ipv6.conf.default.disable_ipv6=1 > /etc/sysctl.conf
192-
echo net.ipv6.conf.lo.disable_ipv6=1 > /etc/sysctl.conf
184+
echo net.ipv6.conf.all.disable_ipv6=1 >> /etc/sysctl.conf
185+
echo net.ipv6.conf.default.disable_ipv6=1 >> /etc/sysctl.conf
186+
echo net.ipv6.conf.lo.disable_ipv6=1 >> /etc/sysctl.conf
193187

194188

195189
sysctl net.bridge.bridge-nf-call-iptables=1
@@ -230,15 +224,15 @@ kubectl taint nodes ${master_node} node-role.kubernetes.io/master:NoSchedule-
230224

231225
# Local storage provisioning.
232226
#
233-
kubectl apply -f https://raw.githubusercontent.com/ananto-msft/sql-server-samples/$GITHUB_AADATACONTROLLER_BRANCH/samples/features/azure-arc-data-controller/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml
227+
kubectl apply -f https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/azure-arc/deployment/kubeadm/ubuntu/local-storage-provisioner.yaml
234228

235229
# Install the software defined network.
236230
#
237231
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
238232

239233
# helm init
240234
#
241-
kubectl apply -f https://raw.githubusercontent.com/ananto-msft/sql-server-samples/$GITHUB_AADATACONTROLLER_BRANCH/samples/features/azure-arc-data-controller/deployment/kubeadm/ubuntu/rbac.yaml
235+
kubectl apply -f https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/azure-arc/deployment/kubeadm/ubuntu/rbac.yaml
242236

243237
# Verify that the cluster is ready to be used.
244238
#
@@ -279,7 +273,7 @@ echo "Starting to deploy azdata cluster..."
279273

280274
# Command to create cluster for single node cluster.
281275
#
282-
azdata control create -c tina-kubeadm-private-preview --accept-eula $ACCEPT_EULA
276+
azdata control create -n $CLUSTER_NAME -c azure-arc-data-kubeadm-private-preview --accept-eula $ACCEPT_EULA
283277
echo "Azure Arc Data Controller cluster created."
284278

285279
# Setting context to cluster.
@@ -289,7 +283,6 @@ kubectl config set-context --current --namespace $CLUSTER_NAME
289283
# Login and get endpoint list for the cluster.
290284
#
291285
azdata login -n $CLUSTER_NAME
292-
azdata bdc endpoint list --output table
293286

294287
if [ -d "$HOME/.azdata/" ]; then
295288
sudo chown -R $(id -u $SUDO_USER):$(id -g $SUDO_USER) $HOME/.azdata/
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)