mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #61633 from briantopping/feature/61632
Automatic merge from submit-queue (batch tested with PRs 62694, 62569, 62646, 61633, 62433). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Patch for #61632, add `/etc/sysconfig/kublet` and supporting wiring. **What this PR does / why we need it**: These are just simple config structure changes to better meet expectations for RHEL users. Helps `KUBELET_EXTRA_ARGS` parameters more easily survive across version upgrades without requiring manual merge of the service file. **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes #61632 **Special notes for your reviewer**: It may be beneficial to give this treatment to other `systemd`-based systems, but I do not have the intellectual authority to do so. **Release note**: ```NONE ```
This commit is contained in:
commit
5ee45a26c0
@ -1,4 +1,5 @@
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/sysconfig/kubelet
|
||||
Environment="KUBELET_KUBECONFIG_ARGS=--bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf"
|
||||
Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true"
|
||||
Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin"
|
||||
|
@ -18,6 +18,7 @@ install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/
|
||||
install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/
|
||||
install -p -m 755 -t %{buildroot}%{_bindir} kubeadm
|
||||
install -p -m 755 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ 10-kubeadm.conf
|
||||
install -p -m 755 -t %{buildroot}%{_sysconfdir}/sysconfig/ kubelet
|
||||
|
||||
%files
|
||||
%{_bindir}/kubeadm
|
||||
|
1
build/rpms/kubelet
Normal file
1
build/rpms/kubelet
Normal file
@ -0,0 +1 @@
|
||||
KUBELET_EXTRA_ARGS=
|
Loading…
Reference in New Issue
Block a user