在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):k3s-io/k3s开源软件地址(OpenSource Url):https://github.com/k3s-io/k3s开源编程语言(OpenSource Language):Go 83.9%开源软件介绍(OpenSource Introduction):K3s - Lightweight KubernetesLightweight Kubernetes. Production ready, easy to install, half the memory, all in a binary less than 100 MB. Great for:
What is this?K3s is a fully conformant production-ready Kubernetes distribution with the following changes:
K3s bundles the following technologies together into a single cohesive distribution:
These technologies can be disabled or swapped out for technologies of your choice. Additionally, K3s simplifies Kubernetes operations by maintaining functionality for:
What's with the name?We wanted an installation of Kubernetes that was half the size in terms of memory footprint. Kubernetes is a 10 letter word stylized as k8s. So something half as big as Kubernetes would be a 5 letter word stylized as K3s. There is neither a long-form of K3s nor official pronunciation. Is this a fork?No, it's a distribution. A fork implies continued divergence from the original. This is not K3s's goal or practice. K3s explicitly intends not to change any core Kubernetes functionality. We seek to remain as close to upstream Kubernetes as possible. However, we maintain a small set of patches (well under 1000 lines) important to K3s's use case and deployment model. We maintain patches for other components as well. When possible, we contribute these changes back to the upstream projects, for example, with SELinux support in containerd. This is a common practice amongst software distributions. K3s is a distribution because it packages additional components and services necessary for a fully functional cluster that go beyond vanilla Kubernetes. These are opinionated choices on technologies for components like ingress, storage class, network policy, service load balancer, and even container runtime. These choices and technologies are touched on in more detail in the What is this? section. How is this lightweight or smaller than upstream Kubernetes?There are two major ways that K3s is lighter weight than upstream Kubernetes:
The memory footprint is reduced primarily by running many components inside of a single process. This eliminates significant overhead that would otherwise be duplicated for each component. The binary is smaller by removing third-party storage drivers and cloud providers, explained in more detail below. What have you removed from upstream Kubernetes?This is a common point of confusion because it has changed over time. Early versions of K3s had much more removed than the current version. K3s currently removes two things:
Both of these have out-of-tree alternatives in the form of CSI and CCM, which work in K3s and which upstream is moving towards. We remove these to achieve a smaller binary size. They can be removed while remaining conformant because neither affects core Kubernetes functionality. They are also dependent on third-party cloud or data center technologies/services, which may not be available in many K3s' use cases. What's next?Check out our roadmap to see what we have planned moving forward. Release cadenceK3s maintains pace with upstream Kubernetes releases. Our goal is to release patch releases on the same day as upstream and minor releases within a few days. Our release versioning reflects the version of upstream Kubernetes that is being released. For example, the K3s release v1.18.6+k3s1 maps to the DocumentationPlease see the official docs site for complete documentation. Quick-Start - Install ScriptThe To install k3s as a service, run: curl -sfL https://get.k3s.io | sh - A kubeconfig file is written to sudo kubectl get nodes
curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=XXX sh - Manual Download
sudo k3s server &
# Kubeconfig is written to /etc/rancher/k3s/k3s.yaml
sudo k3s kubectl get nodes
# On a different node run the below. NODE_TOKEN comes from
# /var/lib/rancher/k3s/server/node-token on your server
sudo k3s agent --server https://myserver:6443 --token ${NODE_TOKEN} ContributingPlease check out our contributing guide if you're interested in contributing to K3s. SecuritySecurity issues in K3s can be reported by sending an email to [email protected]. Please do not file issues about security issues. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论