Skip to content

Commit 225fef2

Browse files
authored
Merge pull request #734 from ananto-msft/master
Updating the setup scripts
2 parents f740fe8 + d9f6862 commit 225fef2

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/cleanup-controller.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fi
6767
# Clean the mounted volumes.
6868
#
6969

70-
for i in $(seq 1 40); do
70+
for i in $(seq 1 80); do
7171

7272
vol="vol$i"
7373

samples/features/azure-arc/deployment/kubeadm/ubuntu-single-node-vm/setup-controller.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# Get controller username and password as input. It is used as default for the controller.
44
#
5-
if [ -z "$CONTROLLER_USERNAME" ]
5+
if [ -z "$AZDATA_USERNAME" ]
66
then
77
read -p "Create Username for Azure Arc Data Controller: " username
88
echo
9-
export CONTROLLER_USERNAME=$username
9+
export AZDATA_USERNAME=$username
1010
fi
11-
if [ -z "$CONTROLLER_PASSWORD" ]
11+
if [ -z "$AZDATA_PASSWORD" ]
1212
then
1313
while true; do
1414
read -s -p "Create Password for Azure Arc Data Controller: " password
@@ -18,7 +18,7 @@ then
1818
[ "$password" = "$password2" ] && break
1919
echo "Password mismatch. Please try again."
2020
done
21-
export CONTROLLER_PASSWORD=$password
21+
export AZDATA_PASSWORD=$password
2222
fi
2323

2424
# Prompt for private preview repository username and password provided by Microsoft
@@ -49,7 +49,7 @@ export DEBIAN_FRONTEND=noninteractive
4949

5050
# Requirements file.
5151
export OSCODENAME=$(lsb_release -cs)
52-
export AZDATA_PRIVATE_PREVIEW_DEB_PACKAGE="https://aka.ms/azdata-"$OSCODENAME
52+
export AZDATA_PRIVATE_PREVIEW_DEB_PACKAGE="https://aka.ms/jan-2020-azdata-"$OSCODENAME
5353

5454
# Kube version.
5555
#
@@ -65,7 +65,7 @@ RETRY_INTERVAL=5
6565
#
6666
export ACCEPT_EULA=yes
6767
export CLUSTER_NAME=azure-arc-system
68-
export PV_COUNT="40"
68+
export PV_COUNT="80"
6969

7070
# Make a directory for installing the scripts and logs.
7171
#
@@ -110,7 +110,7 @@ cd setupscript/
110110

111111
# Download and install azdata prerequisites
112112
#
113-
sudo apt install -y libodbc1 odbcinst odbcinst1debian2 unixodbc
113+
sudo apt install -y libodbc1 odbcinst odbcinst1debian2 unixodbc apt-transport-https libkrb5-dev
114114

115115
# Download and install azdata package
116116
#
@@ -136,7 +136,7 @@ echo "Starting to setup pre-requisites for kubernetes..."
136136
#
137137
echo $(hostname -i) $(hostname) >> sudo tee -a /etc/hosts
138138

139-
swapoff -a
139+
sudo swapoff -a
140140
sudo sed -i '/swap/s/^\(.*\)$/#\1/g' /etc/fstab
141141

142142
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
@@ -290,7 +290,7 @@ echo "Starting to deploy azdata cluster..."
290290

291291
# Command to create cluster for single node cluster.
292292
#
293-
azdata control create -n $CLUSTER_NAME -c azure-arc-kubeadm-private-preview-acr --accept-eula $ACCEPT_EULA
293+
azdata control create -n $CLUSTER_NAME -c azure-arc-kubeadm-private-preview --accept-eula $ACCEPT_EULA
294294
echo "Azure Arc Data Controller cluster created."
295295

296296
# Setting context to cluster.

0 commit comments

Comments
 (0)