Skip to content

Commit 9b6b9bf

Browse files
committed
2 parents 7e5e287 + 8adc42f commit 9b6b9bf

4 files changed

Lines changed: 46 additions & 7 deletions

File tree

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

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,55 @@
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 Ubuntu Linux machines (physical or virtualized) using kubeadm utility. These instructions have been tested with Ubuntu 16.04 LTS & 18.04 LTS versions only.
7+
8+
If you are using Ubuntu 18.04 LTS then install of docker.io may fail with message below depending on your configuration.
9+
10+
Package docker.io is not available, but is referred to by another package.
11+
This may mean that the package is missing, has been obsoleted, or
12+
is only available from another source
13+
14+
E: Package 'docker.io' has no installation candidate
15+
16+
To install docker, you can follow the steps below:
17+
18+
#!/usr/bin/env bash
19+
20+
sudo apt update
21+
22+
sudo apt --yes install \
23+
software-properties-common \
24+
apt-transport-https \
25+
ca-certificates \
26+
curl
27+
28+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
29+
30+
sudo add-apt-repository \
31+
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
32+
33+
sudo apt update
34+
35+
sudo apt --yes install docker-ce
36+
37+
sudo usermod --append --groups docker $USER
38+
739

840
### 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
41+
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
1042
1. Designate one machine as the Kubernetes master
11-
1. Rest of the machine will be used as the Kubernetes agents
43+
1. Rest of the machines will be used as the Kubernetes agents
1244

1345
#### Useful resources
1446
[Deploy SQL Server 2019 big data cluster on Kubernetes](https://docs.microsoft.com/en-us/sql/big-data-cluster/deployment-guidance?view=sqlallproducts-allversions)
47+
1548
[Creating a cluster using kubeadm](https://kubernetes.io/docs/setup/independent/create-cluster-kubeadm/)
49+
1650
[Troubleshooting kubeadm](https://kubernetes.io/docs/setup/independent/troubleshooting-kubeadm/)
1751

1852
#### 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
21-
1. After successful initialization of the Kubernetes master, follow the kubeadm join commands output by the script on each agent machine
53+
1. Execute [kubeadm/ubuntu/setup-k8s-prereqs.sh](kubeadm/ubuntu/setup-k8s-prereqs.sh/) script on each machine
54+
1. Execute [kubeadm/ubuntu/setup-k8s-master.sh](kubeadm/ubuntu/setup-k8s-master.sh/) script on the machine designated as Kubernetes master
55+
1. After successful initialzation of the Kubernetes master, follow the kubeadm join commands output by the script on each agent machine
2256
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/rbac.yaml renamed to samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu/rbac.yaml

File renamed without changes.

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)