This repository has been archived by the owner on Mar 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support kubelet environment file (#142)
* Support kubelet environment file With 1.11 the kubelet packages now support an external kubelet environment file. Update the placement of this configuration from the kubelet.d directory to the /etc/{default|sysconfig}/kubelet file. Signed-off-by: Craig Tracey <craigtracey@gmail.com> * Support env vars in kubelet environment file Add the capability to add environment vars to the kubelet's systemd environment file. This will let folks add arbitrary env vars for things like $HOME, etc. Signed-off-by: Craig Tracey <craigtracey@gmail.com>
- Loading branch information
1 parent
0dff87c
commit 583e801
Showing
4 changed files
with
15 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
ansible/roles/kubernetes-common/templates/etc/default/kubelet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
KUBELET_EXTRA_ARGS={% if kubernetes_common_primary_interface is defined %} --node-ip={{kubernetes_node_ip}}{% endif %}{% for k, v in kubernetes_common_kubelet_extra_args.items() %} --{{k}}='{{v}}'{%- endfor %} | ||
|
||
{% for k, v in kubernetes_common_kubelet_env_vars.items() %} | ||
{{k}}='{{v}}' | ||
{% endfor %} |
2 changes: 0 additions & 2 deletions
2
...roles/kubernetes-common/templates/etc/systemd/system/kubelet.service.d/09-extra-args.conf
This file was deleted.
Oops, something went wrong.