In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
K3s, which is only the size of 40MB, provides a good choice for enterprises that want to save money for development and testing. This article will teach you how to deploy lightweight Kubernetes clusters using K3s in 5 minutes in a very concise way.
This article is from: Rancher Labs
Kubernetes has changed how containerized workloads are deployed and managed on a large scale. The main challenge facing developers now lies in the complexity of the setup process and the huge demand for resources. If you are suffering from insufficient memory and want to deploy lightweight Kubernetes clusters to reduce memory footprint, be sure to consider K3s, a lightweight Kubernetes distribution released by Rancher Labs. It packages all the files needed to install Kubernetes into a 40MB-sized binary file, which only needs 512MB's RAM to run. It is very suitable for environments with limited resources, such as edge computing scenarios, IoT and so on.
In the actual scenario, in order to gain the motivation of development and testing and save money, users want to be able to deploy Kubernetes with the least resource utilization and lower hardware specifications. K3s meets this requirement by running clusters on any device above 512MB RAM, such as IoT devices or ARM-driven devices.
Since K3s requires only a few resources to run, this means that some Kubernetes features have been removed:
Old, non-default, alpha function
Most in-tree plug-ins (cloud providers and storage plug-ins), which are replaced with add-ons
Use sqlite instead of etcd as the default storage mechanism
Deploy lightweight K8s cluster using K3s in 5 minutes
In this article, I'll use three server running on Debian 10, each with 1GB's RAM and 1vcpu. One of the server is the master and the other two are the worker nodes.
$openstack server list+--+--+- +-+ | ID | Name | Status | Networks | Image | Flavor | +-- -+ | 4df6a6dc-26e8-4ae0-8b6e-2f97daec0ef3 | k3s-master | ACTIVE | private=10.10.1.159 | Debian-10 | m1.tiny | | 5ca13239-b745-4f62 -ab11-0a27949c9b35 | k3s-node02 | ACTIVE | private=10.10.1.142 | Debian-10 | m1.tiny | | a54997f2-4d94-4718-86ab-73609b328761 | k3s-node01 | ACTIVE | private=10.10.1.126 | Debian-10 | m1.tiny | +-+ -+
I will add A record to the server in the / etc / hosts file for each server.
Sudo tee-a / etc/hosts
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.