Skip to content

Commit b72fa0d

Browse files
committed
Simplied kubeadm instructions
1 parent 5d436f2 commit b72fa0d

1 file changed

Lines changed: 5 additions & 36 deletions

File tree

  • samples/features/sql-big-data-cluster/deployment/kubeadm
Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,16 @@
1+
# Create a Kubernetes cluster using Kubeadm on Ubuntu 16.04 LTS or 18.04 LTS
12

23

3-
# Create a Kubernetes cluster using Kubeadm on Ubuntu 16.04 LTS or 18.04 LTS
4-
5-
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.
6-
7-
Package docker.io is not available, but is referred to by another package.
8-
This may mean that the package is missing, has been obsoleted, or
9-
is only available from another source
10-
11-
E: Package 'docker.io' has no installation candidate
12-
13-
To install docker, you can follow the steps below:
14-
15-
#!/usr/bin/env bash
16-
17-
sudo apt update
18-
19-
sudo apt --yes install \
20-
software-properties-common \
21-
apt-transport-https \
22-
ca-certificates \
23-
curl
24-
25-
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
26-
27-
sudo add-apt-repository \
28-
"deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
29-
30-
sudo apt update
31-
32-
sudo apt --yes install docker-ce
33-
34-
sudo usermod --append --groups docker $USER
35-
4+
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 & 18.04 LTS versions.
365

376
## Pre-requisites
387

398
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
409
1. Designate one machine as the Kubernetes master
4110
1. Rest of the machines will be used as the Kubernetes agents
4211

12+
**NOTE: Ensure there is sufficient local storage on your agents. Each volume will use up to 10GB by default. The script creates 25 volumes. Not all of the volumes will be used since it depends on the number of pods being deployed on each agent node. It is recommended to have at least 200 GB of storage on the agent nodes**
13+
4314
### Useful resources
4415

4516
[Deploy SQL Server 2019 big data cluster on Kubernetes](https://docs.microsoft.com/en-us/sql/big-data-cluster/deployment-guidance?view=sqlallproducts-allversions)
@@ -55,7 +26,5 @@ To install docker, you can follow the steps below:
5526
1. Execute [ubuntu/setup-k8s-master.sh](ubuntu/setup-k8s-master.sh/) script on the machine designated as Kubernetes master
5627
1. After successful initialization of the Kubernetes master, follow the kubeadm join commands output by the setup script on each agent machine
5728
1. Execute [ubuntu/setup-volumes-agent.sh](ubuntu/setup-volumes-agent.sh/) script on each agent machine to create volumes for local storage
58-
59-
**NOTE: Ensure there is sufficient local storage on your agents. Each volume will use up to 6GB by default. The script creates 25 volumes. Not all of the volumes will be used since it depends on the number of pods being deployed on each agent node. It is recommended to have at least 200 GB of storage on the agent nodes**
60-
1. Execute ***kubectl apply -f ubuntu/local-storage-provisioner.yaml*** against the Kubernetes cluster to create the local storage provisioner. You can now use persistent volumes by setting the USE_PERSISTENT_VOLUME environment variable to ***true*** and STORAGE_CLASS_NAME environment variable to ***local-storage*** during deployment
29+
1. Execute ***kubectl apply -f ubuntu/local-storage-provisioner.yaml*** against the Kubernetes cluster to create the local storage provisioner.
6130
1. Now, you can deploy the SQL Server 2019 big data cluster following instructions [here](https://docs.microsoft.com/en-us/sql/big-data-cluster/deployment-guidance?view=sqlallproducts-allversions)

0 commit comments

Comments
 (0)