Check Device and Disk Names 1 sudo fdisk -l 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 GPT PMBR size mismatch (20971519 != 62914559) will be corrected by write. The backup GPT table is not on the end of the device. This problem will be corrected by write. Disk /dev/sda: 30 GiB, 32212254720 bytes, 62914560 sectors Disk model: VBOX HARDDISK Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: FE6441A3-322D-411A-8EB2-1EAD23D3BB20 Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 2101247 2097152 1G Linux filesystem /dev/sda3 2101248 20969471 18868224 9G Linux filesystem Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 8.
Docker Volume Mount Performance Issue on Mac Issue There’s a performance issue on Mac.
In my case, the docker.hyperkit process is using high cpu resources.
You’d better use cached configuration in conclusion. Tuning Configuration Configuration Description delegated The container’s view of file system writes performed by containers my not be immediately reflect on the host file system. cached The cached configuration provides all the guarantees of the delegated configuration, and some additional guarantees around the visibility of writes performed by containers.
Master Node Init Single Master Node Init 1 sudo kubeadm init Multi Master Node Init 1 sudo kubeadm init --control-plane-endpoint "10.0.2.100:1644" --upload-certs Copy Admin Config 1 2 3 mkdir -p $HOME/.kube sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config sudo chown $(id -u):$(id -g) $HOME/.kube/config Install weaveworks Addon as CNI 1 kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')" Join Master Nodes 1 2 3 4 5 sudo kubeadm join 10.
High Availability in Kubernetes HA in Kubernetes In Kubernetes for high availability, you need load balancing system.
I refer to this official document
In this post, I focus on 2 master nodes.
Prerequisites Prerequisites I’m going to progress in Ubuntu 20.04.2 LTS based on VirtualBox. keepalived keepalived The keepalived provides a virtual IP that is in the same IP subnet for health check. Install keepalived 1 sudo apt install keepalived Firewall Config master01 1 sudo ufw allow from 10.
What is Swap in Computer? SWAP To replace pages or segments of data in memory.
Swapping is a useful technique that enables a computer to execute programs and manipulate data files larger than main memory.
More detail go to here Show Swap 1 free 1 2 3 total used free shared buff/cache available Mem: 2035240 683076 448960 1900 903204 1195404 Swap: 0 0 0 1 sudo swapon -show 1 2 Filename Type Size Used Priority /swap.
View Status 1 sudo ufw status verbose 1 Status: inactive Default 1 2 sudo ufw default allow outgoing sudo ufw default deny incoming Enable IPv6 1 vi /etc/default/ufw 1 2 3 4 5 ... ... IPV6=yes ... ... Add Rules Service Port 1 2 sudo ufw allow ssh sudo ufw deny ssh Protocol 1 2 3 4 sudo ufw allow 2323/tcp sudo ufw allow 1122/upd sudo ufw allow out 3000/tcp sudo ufw allow 6783:6784/tcp comment 'CNI' Advanced Rules From 1 2 sudo ufw allow from 192.