@@ -6,6 +6,8 @@ if [ "$EUID" -ne 0 ]
66 exit
77fi
88
9+ STARTUP_PATH=$( pwd)
10+
911# This is a script to create single-node Kubernetes cluster and deploy BDC on it.
1012#
1113export BDCDEPLOY_DIR=bdcdeploy
3941export DOMAIN_SERVICE_ACCOUNT_PASSWORD=$ds_password
4042echo " "
4143
42- # Get the security patch filepath.
43- #
44- read -p " Enter the Absolute FilePath for Security Patch Json: " security_patch_json_path
45- while [ ! -s $security_patch_json_path ]; do
46- echo " Security Patch Json File does not exist."
47- read -p " Enter the Absolute FilePath for Security Patch Json: " security_patch_json_path
48- done
49- echo " "
50- export SECURITY_PATCH_JSON_PATH=$security_patch_json_path
51-
52- # Get the endpoint patch filepath.
53- #
54- read -p " Enter the Absolute FilePath for Endpoint Patch Json: " endpoint_patch_json_path
55- while [ ! -s $endpoint_patch_json_path ]; do
56- echo " Endpoint Patch Json File does not exist."
57- read -p " Enter the Absolute FilePath for Endpoint Patch Json: " endpoint_patch_json_path
58- done
59- export ENDPOINT_PATCH_JSON_PATH=$endpoint_patch_json_path
60- echo
61-
6244# Name of virtualenv variable used.
6345#
6446export VIRTUALENV_NAME=" bdcvenv"
@@ -173,7 +155,7 @@ source $VIRTUALENV_NAME/bin/activate
173155
174156# Install azdata cli.
175157#
176- pip3 install -r $REQUIREMENTS_LINK --trusted-host helsinki.redmond.corp.microsoft.com
158+ pip3 install -r $REQUIREMENTS_LINK
177159echo " Packages installed."
178160
179161# Load all pre-requisites for Kubernetes.
@@ -358,9 +340,8 @@ azdata bdc config replace -c kubeadm-custom/control.json -j ".spec.docker.imageT
358340azdata bdc config replace -c kubeadm-custom/bdc.json -j " $.spec.resources.data-0.spec.replicas=1"
359341azdata bdc config replace -c kubeadm-custom/control.json -j " spec.storage.data.className=$STORAGE_CLASS "
360342azdata bdc config replace -c kubeadm-custom/control.json -j " spec.storage.logs.className=$STORAGE_CLASS "
361-
362- azdata bdc config patch -c kubeadm-custom/control.json -p $SECURITY_PATCH_JSON_PATH
363- azdata bdc config patch -c kubeadm-custom/bdc.json -p $ENDPOINT_PATCH_JSON_PATH
343+ azdata bdc config patch -c kubeadm-custom/control.json -p $STARTUP_PATH /security-patch.json
344+ azdata bdc config patch -c kubeadm-custom/cluster.json -p $STARTUP_PATH /endpoint-patch.json
364345
365346azdata bdc create -c kubeadm-custom --accept-eula $ACCEPT_EULA
366347
0 commit comments