Skip to content

Commit

Permalink
Add information about Kubelet config mod (bsc#1174219) (#982)
Browse files Browse the repository at this point in the history
* Remove obsolete include file

* Add section about modifying kubelet configuration
  • Loading branch information
Markus Napp authored Sep 2, 2020
1 parent f289a18 commit bc20f65
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
34 changes: 34 additions & 0 deletions adoc/admin-configure-kubelet.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
= Configure kubelet

[WARNING]
====
Modifying the file `/etc/sysconfig/kubelet` directly is not supported.
The changes made to this file will not persist through an update/upgrade of the software.
Please follow the instructions below to change the configuration for `kubelet` persistently.
====

[NOTE]
====
This procedure does not override the default configuration but amends the changes
from the "drop-in" configuration.
Please refer to: https://www.freedesktop.org/software/systemd/man/systemd.unit.html
====

If you wish to modify the configuration for `kubelet` you must use the "drop-in"
configuration feature of systemd. The steps need to be performed on each cluster
node whose `kubelet` you wish to reconfigure.

. Create an appropriate `.conf` file (e.g. `resource-handling.conf`) in `/usr/lib/systemd/system/kubelet.service.d/` with your desired changes.
.
. Reload the service definitions
+
----
sudo systemctl daemon-reload
----
. Restart kubelet
+
----
sudo systemctl restart kubelet
----
2 changes: 0 additions & 2 deletions adoc/admin-flexvolume.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
include::entities.adoc[]

= FlexVolume Configuration

FlexVolume drivers are external (out-of-tree) drivers usually provided by a specific vendor.
Expand Down
2 changes: 2 additions & 0 deletions adoc/book_admin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ include::admin-crio-registries.adoc[CRI-O Registry Configuration,leveloffset=+1]
//include::admin-security-rbac.adoc[Role Based Access Control (RBAC),leveloffset=+1]
include::admin-flexvolume.adoc[Flexvolume Configuration, leveloffset=+2]

include::admin-configure-kubelet.adoc[Configure kubelet, leveloffset=+2]

include::admin-kubernetes-changes.adoc[Kubernetes changes from 1.17 to 1.18,leveloffset=+1]

== Troubleshooting
Expand Down

0 comments on commit bc20f65

Please sign in to comment.