Using this sample bash script, you will deploy a single node Kubernetes cluster using kubeadm and a SQL Server big data cluster on top of it. The script must be run from the VM you are planning to use for your kubeadm deployment.
- A vanilla Ubuntu 16.04 or 18.04 virtual or physical machine. All dependencies will be setup by the script. Using Azure Linux VMs is not yet supported.
- Machine should have at least 8 CPUs, 64GB RAM and 100GB disk space. After installing the images you will be left with 50GB for data/logs across all components.
- Update existing packages using commands below to ensure that the OS image is up to date
sudo apt update&&sudo apt upgrade -y
sudo systemctl reboot-
Use static memory configuration for the virtual machine. For example, in hyper-v installations do not use dynamic memory allocation but instead allocate the recommended 64 GB or higher.
-
Use checkpoint or snapshot capability in your hyper visor so that you can rollback the virtual machine to a clean state.
- Download the script on the VM you are planning to use for the deployment
curl --output setup-bdc.sh https://raw.githubusercontent.com/microsoft/sql-server-samples/master/samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm/setup-bdc.sh- Make the script executable
chmod +x setup-bdc.sh- Run the script (make sure you are running with sudo)
sudo ./setup-bdc.sh- Refresh alias setup for azdata
source ~/.bashrcWhen prompted, provide your input for the password that will be used for all external endpoints: controller, SQL Server master and gateway. The password should be sufficiently complex based on existing rules for SQL Server password. The controller username is defaulted to admin.
- The cleanup-bdc.sh script is provided as convenience to reset the environment in case of errors. However, we recommend that you use a virtual machine for testing purposes and use the snapshot capability in your hyper-visor to rollback the virtual machine to a clean state.