Update README.md
This commit is contained in:
parent
f299628e01
commit
3f1481a44f
60
README.md
60
README.md
@ -88,7 +88,36 @@ sudo systemctl enable --now kubelet
|
|||||||
```shell
|
```shell
|
||||||
kubeadm version
|
kubeadm version
|
||||||
```
|
```
|
||||||
### 5. Configure containerd
|
|
||||||
|
### 5. Disable swap and install docker.io
|
||||||
|
```shell
|
||||||
|
sudo swapoff -a
|
||||||
|
wget https://sh.osa.cubetiqs.com/docker-setup.sh
|
||||||
|
bash docker-setup.sh
|
||||||
|
sudo systemctl start docker
|
||||||
|
sudo systemctl enable docker
|
||||||
|
|
||||||
|
cat <<EOF | sudo tee /etc/docker/daemon.json
|
||||||
|
{
|
||||||
|
"exec-opts": ["native.cgroupdriver=systemd"],
|
||||||
|
"log-driver": "json-file",
|
||||||
|
"log-opts": {
|
||||||
|
"max-size": "100m"
|
||||||
|
},
|
||||||
|
"storage-driver": "overlay2"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sudo systemctl daemon-reload
|
||||||
|
sudo systemctl restart docker
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Install some required tools
|
||||||
|
```shell
|
||||||
|
sudo apt-get -y install socat conntrack
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6. Configure containerd
|
||||||
```shell
|
```shell
|
||||||
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
|
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
|
||||||
overlay
|
overlay
|
||||||
@ -132,35 +161,6 @@ sudo nano /etc/containerd/config.toml
|
|||||||
sudo systemctl restart containerd
|
sudo systemctl restart containerd
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
### 6. Disable swap and install docker.io
|
|
||||||
```shell
|
|
||||||
sudo swapoff -a
|
|
||||||
wget https://sh.osa.cubetiqs.com/docker-setup.sh
|
|
||||||
bash docker-setup.sh
|
|
||||||
sudo systemctl start docker
|
|
||||||
sudo systemctl enable docker
|
|
||||||
|
|
||||||
cat <<EOF | sudo tee /etc/docker/daemon.json
|
|
||||||
{
|
|
||||||
"exec-opts": ["native.cgroupdriver=systemd"],
|
|
||||||
"log-driver": "json-file",
|
|
||||||
"log-opts": {
|
|
||||||
"max-size": "100m"
|
|
||||||
},
|
|
||||||
"storage-driver": "overlay2"
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
|
|
||||||
sudo systemctl daemon-reload
|
|
||||||
sudo systemctl restart docker
|
|
||||||
```
|
|
||||||
|
|
||||||
#### Install some required tools
|
|
||||||
```shell
|
|
||||||
sudo apt-get -y install socat conntrack
|
|
||||||
```
|
|
||||||
|
|
||||||
### 7. Cluster on Master node
|
### 7. Cluster on Master node
|
||||||
```shell
|
```shell
|
||||||
sudo kubeadm init --pod-network-cidr 172.16.1.0/24
|
sudo kubeadm init --pod-network-cidr 172.16.1.0/24
|
||||||
|
Loading…
Reference in New Issue
Block a user