Merge "remove docker dependency from kubelet.service"

This commit is contained in:
Zuul 2020-06-19 16:00:37 +00:00 committed by Gerrit Code Review
commit 7e4d52bc3b
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
diff --git a/contrib/init/systemd/kubelet.service b/contrib/init/systemd/kubelet.service
index 1082bba..1fae395 100644
--- a/contrib/init/systemd/kubelet.service
+++ b/contrib/init/systemd/kubelet.service
@@ -1,8 +1,8 @@
[Unit]
Description=Kubernetes Kubelet Server
Documentation=https://kubernetes.io/docs/concepts/overview/components/#kubelet https://kubernetes.io/docs/reference/generated/kubelet/
-After=docker.service
-Requires=docker.service
+Wants=network-online.target
+After=network-online.target
[Service]
WorkingDirectory=/var/lib/kubelet

View File

@ -56,6 +56,7 @@ Source5: kubelet-cgroup-setup.sh
Source33: genmanpages.sh
Patch1: 0001-Fix-pagesize-check-to-allow-for-options-already-endi.patch
Patch2: kubelet-service-remove-docker-dependency.patch
# It obsoletes cadvisor but needs its source code (literally integrated)
Obsoletes: cadvisor
@ -841,6 +842,7 @@ Kubernetes client tools like kubectl
# copy contrib folder
mkdir contrib
cp -r ../%{con_repo}-%{con_commit}/init contrib/.
%patch2 -p1
#src/k8s.io/kubernetes/pkg/util/certificates
# Patch the code to remove eliptic.P224 support