How to set up Kubernetes (K3s) cluster on two machines

Kubernetes are very useful for managing servers at a scale. Someone might ask, I don't have more than 3 servers to manage. Should I go for Kubernetes, or could we use Docker or Docker Compose?

In the past several years, I would suggest we could just use Docker Compose. But seeing that more mature and lightweight Kubernetes solutions appeared, I changed my mind and started using Kubernetes if I had more than two machines to manage (or even one machine). I think K3s is a good distribution of Kubernetes which has a relatively small footprint in case you have a small cluster. Comparing it to running the container naked using Docker compose, using K3s will require you to run a few extra Kubernetes administrative processes. That is about 150 MB of extra memory, which should not be a big deal for most IoT devices (I guess).

We are using Kubernetes not just for managing a "huge" cluster but to have verifiable deployment across development and deployment. In our development environment, we downscale the cluster to 1. And in the production or staging environment, we could upscale the deployment if necessary.

This article will describe how to install a light weighted version of Kubernetes -- K3s in two nodes and with IPv6 enabled.

 

z9hG4bK

SIP 服务器的魔法

2022服务器维护及展望

2022-11-19 11:46:28

[开发运维 | Dev Ops]

2022 年依然是很忙,不过还是将整个服务器迁移至了 Kubernetes , 云原生就是比较的方便,能够在不同的服务器之间轻松迁移。

2021服务器维护展望

2021-06-06 17:15:48

[开发运维 | Dev Ops]

2020年简直是,太忙了真是所谓的百年未有之大变局,忙得没有时间来写博客。

2019-2020 年服务器维护计划与展望

2019-11-04 14:05:40

[网站记录 | Web Dev] ,

感觉可以支配的时间越来越少了。服务器现在基本上已经迁移到了HDD的独立服务器上面,RAID1基本上和原来的SSD服务器速度相当。原来的服务器SSD也是比较老旧,写入速度只有130M左右,真的是连HDD都不如。

EECS3481 Lecture Notes - York University

I would like to share my notes for you guys.

给KVM下的qcow2虚拟硬盘扩容(针对CentOS)

2018-07-11 10:38:11

[开发运维 | Dev Ops] , ,

服务器上的空间其实还是比较吃紧的,VM自己设置的默认盘没有给多少空间,有时候不够用其实也是可以扩容的。记录一下主要的步骤,以免以后要查。。。。

一些有趣的C++和Java的研究

2018-04-14 23:39:08

[专业笔记 | Academic] , , ,

一些有用的链接,有空需要整理一下