Skip to content

Instantly share code, notes, and snippets.

@unixfox
Last active May 8, 2024 17:09
Show Gist options
  • Save unixfox/ecb902ac1016c44611f5b55844ef7a0c to your computer and use it in GitHub Desktop.
Save unixfox/ecb902ac1016c44611f5b55844ef7a0c to your computer and use it in GitHub Desktop.
Tests k0s and talos kubernetes memory usage and bandwidth usage for k0s

k0s with 1 master, 2 workers:

base OS memory usage: 94MB
master:

root@k0s-master01:~# free -h  
               total        used        free      shared  buff/cache   available  
Mem:           1.9Gi       632Mi       904Mi       3.6Mi       574Mi       1.3Gi  
Swap:          983Mi          0B       983Mi  

1st worker with all the minimum apps for a cluster:

root@k0s-worker02:~# free -h  
               total        used        free      shared  buff/cache   available  
Mem:           960Mi       373Mi       200Mi       3.9Mi       527Mi       586Mi  
Swap:          1.0Gi          0B       1.0Gi  

2nd worker empty (only required components): 269MB

root@k0s-worker02:~# free -h  
               total        used        free      shared  buff/cache   available  
Mem:           960Mi       380Mi       192Mi       3.9Mi       529Mi       580Mi  
Swap:          1.0Gi          0B       1.0Gi  

talos 2 masters and 1 worker

master:

talos-control-plane-1:/# free -h  
              total        used        free      shared  buff/cache   available  
Mem:           1.9G      644.1M       41.3M       67.9M        1.2G        1.2G  
Swap:             0           0           0  

worker:

talos-worker-1:/# free -h  
              total        used        free      shared  buff/cache   available  
Mem:         951.3M      237.2M       25.2M       67.1M      689.0M      628.6M  
Swap:             0           0           0  

bandwidth usage for k0s

root@k0s-master01:~# vnstat

                  rx      /      tx      /     total    /   estimated

eth0: 2024-05 18.75 MiB / 54.47 MiB / 73.22 MiB / 2.20 GiB yesterday 1.15 MiB / 3.41 MiB / 4.55 MiB today 17.60 MiB / 51.06 MiB / 68.66 MiB / 96.46 MiB

eth1: 2024-05 22.53 MiB / 84.42 MiB / 106.96 MiB / 3.22 GiB yesterday 2.24 MiB / 8.33 MiB / 10.58 MiB today 20.29 MiB / 76.09 MiB / 96.38 MiB / 135.40 MiB

eth1 being used for talking to master node root@k0s-worker02:~# vnstat

                  rx      /      tx      /     total    /   estimated

eth0: 2024-05 36.25 MiB / 14.57 MiB / 50.83 MiB / 1.53 GiB yesterday 28.30 MiB / 824.93 KiB / 29.11 MiB today 7.95 MiB / 13.77 MiB / 21.72 MiB / 30.51 MiB

eth1: 2024-05 42.47 MiB / 10.83 MiB / 53.30 MiB / 1.60 GiB yesterday 4.09 MiB / 1.00 MiB / 5.09 MiB today 38.38 MiB / 9.83 MiB / 48.21 MiB / 67.73 MiB

kube-bridge: 2024-05 3.50 MiB / 3.93 MiB / 7.43 MiB / 228.07 MiB yesterday 367.96 KiB / 448.82 KiB / 816.77 KiB today 3.14 MiB / 3.49 MiB / 6.63 MiB / 9.31 MiB

tun-20618910844: 2024-05 21.40 KiB / 28.95 KiB / 50.35 KiB / --
yesterday 21.40 KiB / 28.95 KiB / 50.35 KiB today 0 B / 0 B / 0 B / --

veth989d344a [disabled]: 2024-05 3.31 MiB / 3.08 MiB / 6.39 MiB / 241.95 MiB yesterday 382.30 KiB / 359.27 KiB / 741.57 KiB today 2.94 MiB / 2.73 MiB / 5.67 MiB / 10.15 MiB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment