Skip to content

Commit bb2cf8a

Browse files
committed
Added instructions for Ubuntu 18.04 LTS
1 parent fd91cad commit bb2cf8a

3 files changed

Lines changed: 42 additions & 6 deletions

File tree

samples/features/sql-big-data-cluster/deployment/README.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,52 @@
22
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.
33

44

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+
737

838
### 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
1040
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
1242

1343
#### Useful resources
1444
[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+
1546
[Creating a cluster using kubeadm](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/)
1647
[Troubleshooting kubeadm](https://kubernetes.io/docs/setup/independent/troubleshooting-kubeadm/)
1748

1849
#### 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
2152
1. After successful initialization of the Kubernetes master, follow the kubeadm join commands output by the script on each agent machine
2253
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)

samples/features/sql-big-data-cluster/deployment/kubeadm/setup-k8s-master.sh renamed to samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-setup-k8s-master.sh

File renamed without changes.

samples/features/sql-big-data-cluster/deployment/kubeadm/setup-k8s-prereqs.sh renamed to samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-setup-k8s-prereqs.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ apt-get install -y docker.io
1818
apt-get install -y apt-transport-https
1919
apt-get install -y kubelet=$KUBE_DPKG_VERSION kubeadm=$KUBE_DPKG_VERSION kubectl=$KUBE_DPKG_VERSION
2020
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash
21+
22+
. /etc/os-release
23+
if [ "$VERSION_CODENAME" == "bionic" ]; then
24+
modprobe br_netfilter
25+
fi
2126
sysctl net.bridge.bridge-nf-call-iptables=1

0 commit comments

Comments
 (0)