@@ -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#
3939TIMEOUT=600
4040RETRY_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
5145export DOMAIN_SERVICE_ACCOUNT_USERNAME=admin
5246export DOMAIN_SERVICE_ACCOUNT_PASSWORD=$password
@@ -58,7 +52,7 @@ export MSSQL_SA_PASSWORD=$password
5852export KNOX_PASSWORD=$password
5953
6054export ACCEPT_EULA=yes
61- export CLUSTER_NAME=mssql -cluster
55+ export CLUSTER_NAME=azure-arc -cluster
6256export PV_COUNT=" 40"
6357
6458# Make a directory for installing the scripts and logs.
@@ -69,7 +63,7 @@ cd $AZUREARCDATACONTROLLER_DIR/
6963touch $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#
7468echo " "
7569echo " ######################################################################################"
@@ -187,9 +181,9 @@ sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1
187181sudo sysctl -w net.ipv6.conf.default.disable_ipv6=1
188182sudo 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
195189sysctl 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#
237231kubectl 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
283277echo " 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#
291285azdata login -n $CLUSTER_NAME
292- azdata bdc endpoint list --output table
293286
294287if [ -d " $HOME /.azdata/" ]; then
295288 sudo chown -R $( id -u $SUDO_USER ) :$( id -g $SUDO_USER ) $HOME /.azdata/
0 commit comments