mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-16 18:13:17 +00:00
Merge pull request #3861 from jtravee/in-tree-k8s-storage
Called out that K3s drops in-tree kubernetes storage drivers
This commit is contained in:
@@ -9,6 +9,26 @@ A persistent volume (PV) is a piece of storage in the Kubernetes cluster, while
|
||||
|
||||
This page describes how to set up persistent storage with a local storage provider, or with [Longhorn.](#setting-up-longhorn)
|
||||
|
||||
# What's changed in K3s storage?
|
||||
|
||||
K3s removes several optional volume plugins and all built-in (sometimes referred to as "in-tree") cloud providers. We do this in order to achieve a smaller binary size and to avoid dependence on third-party cloud or data center technologies and services, which may not be available in many K3s use cases. We are able to do this because their removal affects neither core Kubernetes functionality nor conformance.
|
||||
|
||||
The following volume plugins have been removed from K3s:
|
||||
|
||||
* cephfs
|
||||
* fc
|
||||
* flocker
|
||||
* git_repo
|
||||
* glusterfs
|
||||
* portworx
|
||||
* quobyte
|
||||
* rbd
|
||||
* storageos
|
||||
|
||||
Both components have out-of-tree alternatives that can be used with K3s: The Kubernetes [Container Storage Interface (CSI)](https://github.com/container-storage-interface/spec/blob/master/spec.md) and [Cloud Provider Interface (CPI)](https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/).
|
||||
|
||||
Kubernetes maintainers are actively migrating in-tree volume plugins to CSI drivers. For more information on this migration, please refer [here](https://kubernetes.io/blog/2021/12/10/storage-in-tree-to-csi-migration-status-update/).
|
||||
|
||||
# Setting up the Local Storage Provider
|
||||
K3s comes with Rancher's Local Path Provisioner and this enables the ability to create persistent volume claims out of the box using local storage on the respective node. Below we cover a simple example. For more information please reference the official documentation [here](https://github.com/rancher/local-path-provisioner/blob/master/README.md#usage).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user