k3s

k3s-ioApache-2.0活跃维护

轻量级 Kubernetes 发行版,把控制面组件打包成单个二进制,适合边缘、IoT 和资源受限环境快速部署集群。

Lightweight Kubernetes

v1.37.2+k3s1发布于 2026-11-03 17:32 UTC34,381star +23 / 7 天2,778fork同步于 2026-11-10 23:22 UTC

怎么上手

由 README 提炼,执行前请确认
curl -sfL https://get.k3s.io | sh -
sudo kubectl get nodes
硬件要求按 README 说明

README 未说明具体 CPU 或内存规格;支持 x86_64、armhf、arm64、s390x 架构,适合边缘、IoT、ARM 等场景,仅需正常内核与 cgroup 挂载。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

轻量级生产级 Kubernetes 发行版,单二进制部署,内存占用约为上游一半

轻量级 Kubernetes 发行版,把控制面组件打包成单个二进制,适合边缘、IoT 和资源受限环境快速部署集群。

核心能力

  • 打包为单个小于 100 MB 的二进制文件
  • 默认使用 sqlite3 存储,也支持 etcd3、MariaDB、MySQL、Postgres
  • 内置 containerd、Flannel、CoreDNS、Traefik、Metrics Server 等组件
  • 通过 websocket 隧道暴露 kubelet API,无需在工作节点开放端口
  • 可用 Helm-controller 按 CRD 部署 Helm 清单,并自动管理 TLS 证书

容易踩的坑

安装脚本会写入 systemd 或 openrc 服务,kubeconfig 位于 /etc/rancher/k3s/k3s.yaml,需 sudo 才能读取;加入工作节点必须同时传入 K3S_URL 和 K3S_TOKEN,token 在服务端 /var/lib/rancher/k3s/server/node-token;默认移除了 in-tree 存储驱动和云厂商插件,需要 CSI/CCM 替代方案。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v1.37.2+k3s1
  1. v1.37.2+k3s1最新正式版2026-11-03 · 2026-11-03 17:32 UTC

    This release updates Kubernetes to v1.37.2, and fixes a number of issues.

    For more details on what's new, see the Kubernetes release notes.

    Changes since v1.37.1+k3s1:

    • Add gateway-api-crd to help (#14727)
    • Run snapshotrestore test entries in parallel (#14733)
    • Deps: bump containerd to v2.3.6 (#14744)
    • Bump Traefik to v3.7.14 and gateway-api to 1.6.2 (#14757)
    • Bump gateway-api to 1.6.3 (#14769)
    • Bump K3s-root version to v0.15.3 (#14782)
    • Bump flannel to v0.28.10 (#14796)
    • Bump containerd to v2.3.7 (#14805)
    • Update kube-roter to v2.11.1 (#14762)
    • Remove unused replace directives (#14821)
    • Bump Klipper Helm and Helm Controller version (#14814)
    • Backports for 2026-10 (#14825)
      • Prevent systemd restart loop when no default route is present by waiting 60 seconds for default route to appear #14527
      • Exclude kms-providers from apiserver readiness check #14635
      • Clarify etcd local vs S3 snapshot retention flag help #14716
      • Update ServiceLB status when node addresses change #14550
      • Omit default SA key flags when service-account-signing-endpoint is set #14719
      • Fix local-path PV deletion with SELinux enforcing #14740
      • Feature/14562 etcd snapshot restrictions #14678
      • Report image list read errors when pre-pulling images #14732
      • Migrate CI from docker to GHCR #14603
      • Fix etcd member removal when etcd is disabled on an existing server #14801
      • Docker tests: add gateway-api test #14802
      • Fix goroutine leak in the proxy #14811
      • Make etcdsnapshot restrictions integration test respect the test lock #14820
    • Bump rancher/mirrored-library-traefik image version (#14833)
    • Bump Klipper Helm and Helm Controller version (#14874)
    • Pin runners to ubuntu-24.04 (#14918)
    • Bump k3s-io/kubernetes and Go references (#14925)
    • Bump x/net and pass golang.org/x/ replacements through when building bundled binaries (#14935)

    Embedded Component Versions

    ComponentVersion
    Kubernetesv1.37.2
    Kinev0.17.1
    SQLite3.53.4
    Etcdv3.7.1-k3s3
    Containerdv2.3.7-k3s1
    Runcv1.4.2
    Flannelv0.28.10
    Metrics-serverv0.9.0
    Traefikv3.7.15
    CoreDNSv1.14.7
    Helm-controllerv0.17.9
    Local-path-provisionerv0.0.37
    Kubernetes Gateway API CRD[1.6.301](https://github.com/k
  2. v1.36.6+k3s12026-11-03 · 2026-11-03 17:31 UTC
    查看更新说明

    This release updates Kubernetes to v1.36.6, and fixes a number of issues.

    For more details on what's new, see the Kubernetes release notes.

    Changes since v1.36.5+k3s1:

    • Run snapshotrestore test entries in parallel (#14734)
    • Deps: bump containerd to v2.3.6 (#14742)
    • Bump Traefik image and gateway-api (#14750)
    • Bump gateway-api to 1.6.3 (#14771)
    • Bump K3s-root version to v0.15.3 (#14779)
    • Bump flannel to v0.28.10 (#14798)
    • Bump containerd to v2.3.7 (#14806)
    • Update kube-roter to v2.11.1 (#14763)
    • Remove unused replace directives (#14822)
    • Bump Klipper Helm and Helm Controller version (#14816)
    • Backports for 2026-10 (#14826)
      • Prevent systemd restart loop when no default route is present by waiting 60 seconds for default route to appear #14527
      • Exclude kms-providers from apiserver readiness check #14635
      • Clarify etcd local vs S3 snapshot retention flag help #14716
      • Update ServiceLB status when node addresses change #14550
      • Omit default SA key flags when service-account-signing-endpoint is set #14719
      • Fix local-path PV deletion with SELinux enforcing #14740
      • Feature/14562 etcd snapshot restrictions #14678
      • Report image list read errors when pre-pulling images #14732
      • Migrate CI from docker to GHCR #14603
      • Fix etcd member removal when etcd is disabled on an existing server #14801
      • Docker tests: add gateway-api test #14802
      • Fix goroutine leak in the proxy #14811
      • Make etcdsnapshot restrictions integration test respect the test lock #14820
    • Bump rancher/mirrored-library-traefik image version (#14834)
    • Bump Klipper Helm and Helm Controller version (#14876)
    • Pin runners to ubuntu-24.04 (#14919)
    • Bump k3s-io/kubernetes and Go references (#14926)
    • Bump x/net and pass golang.org/x/ replacements through when building bundled binaries (#14936)

    Embedded Component Versions

    ComponentVersion
    Kubernetesv1.36.6
    Kinev0.16.5
    SQLite3.53.4
    Etcdv3.6.14-k3s3
    Containerdv2.3.7-k3s1.36
    Runcv1.4.2
    Flannelv0.28.10
    Metrics-serverv0.9.0
    Traefikv3.7.15
    CoreDNSv1.14.7
    Helm-controllerv0.17.9
    Local-path-provisionerv0.0.37

    Helpful Links

    As always, we welcome and appreciate feedback from our community of users. Please feel free to:

  3. v1.36.6-rc2+k3s1pre-release2026-10-30 · 2026-10-30 13:43 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/k3s-io/k3s/compare/v1.36.6-rc1+k3s1...v1.36.6-rc2+k3s1

  4. v1.37.2-rc2+k3s1pre-release2026-10-30 · 2026-10-30 13:43 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/k3s-io/k3s/compare/v1.37.2-rc1+k3s1...v1.37.2-rc2+k3s1

  5. v1.37.2-rc1+k3s1pre-release2026-10-29 · 2026-10-29 15:23 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/k3s-io/k3s/compare/v1.37.1+k3s1...v1.37.2-rc1+k3s1

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    K3s - Lightweight Kubernetes

    FOSSA Status Nightly CI Build Status Integration Test Coverage Unit Test Coverage OpenSSF Best Practices OpenSSF Scorecard Releases CLOMonitor

    Lightweight Kubernetes. Production ready, easy to install, half the memory, all in a binary less than 100 MB.

    Great for:

    • Edge
    • IoT
    • CI
    • Development
    • ARM
    • Embedding k8s
    • Situations where a PhD in k8s clusterology is infeasible

    What is this?

    K3s is a fully conformant production-ready Kubernetes distribution with the following changes:

    1. It is packaged as a single binary.
    2. It adds support for sqlite3 as the default storage backend. Etcd3, MariaDB, MySQL, and Postgres are also supported.
    3. It wraps Kubernetes and other components in a single, simple launcher.
    4. It is secure by default with reasonable defaults for lightweight environments.
    5. It has minimal to no OS dependencies (just a sane kernel and cgroup mounts needed).
    6. It eliminates the need to expose a port on Kubernetes worker nodes for the kubelet API by exposing this API to the Kubernetes control plane nodes over a websocket tunnel.

    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:

    • Managing the TLS certificates of Kubernetes components
    • Managing the connection between worker and server nodes
    • Auto-deploying Kubernetes resources from local manifests in realtime as they are changed.
    • Managing an embedded etcd cluster

    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. A '3' is also an '8' cut in half vertically. 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:

    1. The memory footprint to run it is smaller
    2. The binary, which contains all the non-containerized components needed to run a cluster, is smaller

    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:

    1. In-tree storage drivers
    2. In-tree cloud provider

    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.

    Getting Started

    Community

    • Slack

    Join Slack to chat with K3s developers and other K3s users. Great place to learn and ask questions: #k3s and #k3s-contributor and #k3s channel in CNCF Slack

    • Getting involved

    GitHub Issues - Submit your issues and feature requests via GitHub.

    • Community Meetings and Office hours

    The K3s developer community hangs out on Zoom to chat. Everybody is welcome.

    Add the Linux Foundation iCal to your calendar:

    • AMS/EMEA TZ 10:00 am PST - every second Tuesday of the month
    • EMEA/APAC TimeZone friendly - every third Tuesday of the month

    Meeting notes and agenda: https://hackmd.io/@k3s/meet-notes/

    Meeting recordings: K3s Channel

    You can check also the full details on the website: https://k3s.io/community

    What's next?

    Check out our roadmap to see what we have planned moving forward.

    Release cadence

    K3s maintains pace with upstream Kubernetes releases. Our goal is to release patch releases within one week, and new minors within 30 days.

    Our release versioning reflects the version of upstream Kubernetes that is being released. For example, the K3s release v1.27.4+k3s1 maps to the v1.27.4 Kubernetes release. We add a postfix in the form of +k3s<number> to allow us to make additional releases using the same version of upstream Kubernetes while remaining semver compliant. For example, if we discovered a high severity bug in v1.27.4+k3s1 and needed to release an immediate fix for it, we would release v1.27.4+k3s2.

    Documentation

    Please see the official docs site for complete documentation.

    Quick-Start - Install Script

    The install.sh script provides a convenient way to download K3s and add a service to systemd or openrc.

    To install k3s as a service, run:

    curl -sfL https://get.k3s.io | sh -
    

    A kubeconfig file is written to /etc/rancher/k3s/k3s.yaml and the service is automatically started or restarted. The install script will install K3s and additional utilities, such as kubectl, crictl, k3s-killall.sh, and k3s-uninstall.sh, for example:

    sudo kubectl get nodes
    

    K3S_TOKEN is created at /var/lib/rancher/k3s/server/node-token on your server. To install on worker nodes, pass K3S_URL along with K3S_TOKEN environment variables, for example:

    curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=XXX sh -
    

    Manual Download

    1. Download k3s from latest release, x86_64, armhf, arm64 and s390x are supported.
    2. Run the server.
    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}
    

    Contributing

    Please check out our contributing guide if you're interested in contributing to K3s.

    Security

    Security issues in K3s can be reported by sending an email to [email protected]. Please do not file issues about security issues.