|
2 | 2 | SQL Server 2019 big data cluster is deployed as docker containers on a Kubernetes cluster. These samples provide scripts that can be used to provision a Kubernetes cluster using different methods. |
3 | 3 |
|
4 | 4 |
|
5 | | -## Create a Kubernetes cluster using Kubeadm |
6 | | -In this example, we will deploy Kubernetes over multiple Linux machines (physical or virtualized) using kubeadm utility. These instructions have been tested primarily with Ubuntu 16.04 LTS version. If you are using Ubuntu 18.04 LTS then some of the steps may need to be changed depending on your configuration. |
| 5 | +## Create a Kubernetes cluster using Kubeadm on Ubuntu 16.04 LTS or 18.04 LTS |
| 6 | +In this example, we will deploy Kubernetes over multiple Linux machines (physical or virtualized) using kubeadm utility. These instructions have been tested primarily with Ubuntu 16.04 LTS version. If you are using Ubuntu 18.04 LTS then install of docker.io may fail with message below depending on your configuration. |
| 7 | + |
| 8 | + Package docker.io is not available, but is referred to by another package. |
| 9 | + This may mean that the package is missing, has been obsoleted, or |
| 10 | + is only available from another source |
| 11 | + |
| 12 | + E: Package 'docker.io' has no installation candidate |
| 13 | + |
| 14 | +To install docker, you can follow the steps below: |
| 15 | + |
| 16 | + #!/usr/bin/env bash |
| 17 | + |
| 18 | + sudo apt update |
| 19 | + |
| 20 | + sudo apt --yes install \ |
| 21 | + software-properties-common \ |
| 22 | + apt-transport-https \ |
| 23 | + ca-certificates \ |
| 24 | + curl |
| 25 | + |
| 26 | + curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - |
| 27 | + |
| 28 | + sudo add-apt-repository \ |
| 29 | + "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |
| 30 | + |
| 31 | + sudo apt update |
| 32 | + |
| 33 | + sudo apt --yes install docker-ce |
| 34 | + |
| 35 | + sudo usermod --append --groups docker $USER |
| 36 | + |
7 | 37 |
|
8 | 38 | ### Pre-requisites |
9 | | -1. Multiple Linux machines or virtual machines. Recommended configuration is 8 CPUs, 32 GB memory each for each machine. Minimum number of machines required is three machines |
| 39 | +1. Multiple Linux machines or virtual machines. Recommended configuration is 8 CPUs, 32 GB memory each and at least 100 GB storage for each machine. Minimum number of machines required is three machines |
10 | 40 | 1. Designate one machine as the Kubernetes master |
11 | | -1. Rest of the machine will be used as the Kubernetes agents |
| 41 | +1. Rest of the machines will be used as the Kubernetes agents |
12 | 42 |
|
13 | 43 | #### Useful resources |
14 | 44 | [Deploy SQL Server 2019 big data cluster on Kubernetes](https://docs.microsoft.com/en-us/sql/big-data-cluster/deployment-guidance?view=sqlallproducts-allversions) |
| 45 | + |
15 | 46 | [Creating a cluster using kubeadm](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/) |
16 | 47 | [Troubleshooting kubeadm](https://kubernetes.io/docs/setup/independent/troubleshooting-kubeadm/) |
17 | 48 |
|
18 | 49 | #### Instructions |
19 | | -1. Execute [kubeadm/setup-k8s-prereqs.sh](kubeadm/setup-k8s-prereqs.sh/) script on each machine |
20 | | -1. Execute [kubeadm/setup-k8s-master.sh](kubeadm/setup-k8s-master.sh/) script on the machine designated as Kubernetes master |
| 50 | +1. Execute [kubeadm/ubuntu-setup-k8s-prereqs.sh](kubeadm/ubuntu-setup-k8s-prereqs.sh/) script on each machine |
| 51 | +1. Execute [kubeadm/ubuntu-setup-k8s-master.sh](kubeadm/ubuntu-setup-k8s-master.sh/) script on the machine designated as Kubernetes master |
21 | 52 | 1. After successful initialization of the Kubernetes master, follow the kubeadm join commands output by the script on each agent machine |
22 | 53 | 1. Now, you can deploy SQL Server 2019 big data cluster using instructions [here](https://docs.microsoft.com/en-us/sql/big-data-cluster/deployment-guidance?view=sqlallproducts-allversions) |
0 commit comments