File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -584,3 +584,22 @@ spec:
584
584
585
585
As seen from the component list, the only always-on component is the Kubernetes
586
586
api-server, without that k0s serves no purpose.
587
+
588
+ # # Kubelet root directory
589
+
590
+ Unlike vanilla kubernetes, k0s by default deploys kubelet' s root directory inside
591
+ `--data-dir`, which defaults to `/var/lib/k0s/` and kubelet ultimately runs in
592
+ `/var/lib/k0s/kubelet`. This can result in incompatibilities on external software
593
+ that mounts the kubelet working dir, such as CSI plugins.
594
+
595
+ This can be changed using the flag `--kubelet-root-dir`, for instance, to use
596
+ kubernetes' default value it can be set up as:
597
+
598
+ ` ` ` shell
599
+ sudo k0s install worker --token-file /var/lib/k0s/join-token --kubelet-root-dir=/var/lib/kubelet
600
+ ` ` `
601
+
602
+ Keep in mind that changing the flag in an existing node will not remove existing directories.
603
+ Equally importantly, some pods such as CSI plugins are likely to mount this directory,
604
+ having inconsistent values across nodes is very likely to cause problems on Deployments and
605
+ DaemonSets.
You can’t perform that action at this time.
0 commit comments