From c33dbbe87d4b2786727ab493283ffe6a8d4a47fc Mon Sep 17 00:00:00 2001 From: Manuel Hutter Date: Thu, 26 Jan 2023 08:33:20 +0100 Subject: [PATCH] docs: Documenting Kubelet path Fixes: #2599 Signed-off-by: Manuel Hutter --- docs/storage.md | 6 +++++- docs/troubleshooting.md | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/storage.md b/docs/storage.md index 406f6c69d319..89b7276fa103 100644 --- a/docs/storage.md +++ b/docs/storage.md @@ -106,6 +106,10 @@ When the storage solution implements Container Storage Interface (CSI), containe ![k0s storage](img/k0s_storage.png) +### Installing 3rd party storage solutions + +Follow your storage driver's installation instructions. Note that the kubelet installed by k0s uses a slightly differen path for its working directory (`/varlib/k0s/kubelet` instead of `/var/lib/kubelet`). Consult the CSI driver's configuration documentation on how to customize this path. + ## Example storage solutions Different Kubernetes storage solutions are explained in the [official Kubernetes storage documentation](https://kubernetes.io/docs/concepts/storage/volumes/). All of them can be used with k0s. Here are some popular ones: @@ -119,4 +123,4 @@ Different Kubernetes storage solutions are explained in the [official Kubernetes - Azure Disk - Portworx -If you are looking for a fault-tolerant storage with data replication, you can find a k0s tutorial for configuring Ceph storage with Rook [in here](examples/rook-ceph.md). \ No newline at end of file +If you are looking for a fault-tolerant storage with data replication, you can find a k0s tutorial for configuring Ceph storage with Rook [in here](examples/rook-ceph.md). diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 2ca64fbcc8df..b86b03a79122 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -148,4 +148,10 @@ Due to removal of the embedded docker-shim from Kubelet, the Kubelets embedded [ Unfortunately this does not work on when using Docker via cri-dockerd shim. There's currently no easy workarounds for this. -In the future kubelet will be refactored to get the container metrics from CRI interface rather than from the runtime directly. This work is specified and followed up in [KEP-2371](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2371-cri-pod-container-stats/README.md) but until that work completes the only option is to run a standalone cAdvisor. There's ongoing [effort](https://github.com/kubernetes/website/issues/30681) to both document the current shortcomings and how to run standalone cAdvisor in Kubernetes community. \ No newline at end of file +In the future kubelet will be refactored to get the container metrics from CRI interface rather than from the runtime directly. This work is specified and followed up in [KEP-2371](https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2371-cri-pod-container-stats/README.md) but until that work completes the only option is to run a standalone cAdvisor. There's ongoing [effort](https://github.com/kubernetes/website/issues/30681) to both document the current shortcomings and how to run standalone cAdvisor in Kubernetes community. + +## Customized configurations + +* All data directories reside under `/var/lib/k0s`, for example: + * `/var/lib/k0s/kubelet` + * `/var/lib/k0s/etcd`