Merge pull request #71540 from mauilion/kubeadm_1287

Add conntrack as a dependency of kubelet
This commit is contained in:
k8s-ci-robot 2018-11-30 15:09:45 -08:00 committed by GitHub
commit 08706ea29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 19 deletions

View File

@ -148,14 +148,15 @@ k8s_deb(
k8s_deb( k8s_deb(
name = "kubelet", name = "kubelet",
depends = [ depends = [
"iptables (>= 1.4.21)", "conntrack",
"kubernetes-cni (>= 0.5.1)",
"iproute2",
"socat",
"util-linux",
"mount",
"ebtables", "ebtables",
"ethtool", "ethtool",
"iproute2",
"iptables (>= 1.4.21)",
"kubernetes-cni (>= 0.6.0)",
"mount",
"socat",
"util-linux",
], ],
description = """Kubernetes Node Agent description = """Kubernetes Node Agent
The node agent of Kubernetes, the container cluster manager The node agent of Kubernetes, the container cluster manager
@ -168,7 +169,7 @@ k8s_deb(
depends = [ depends = [
"kubelet (>= 1.8.0)", "kubelet (>= 1.8.0)",
"kubectl (>= 1.8.0)", "kubectl (>= 1.8.0)",
"kubernetes-cni (>= 0.5.1)", "kubernetes-cni (>= 0.6.0)",
"cri-tools (>= 1.11.0)", "cri-tools (>= 1.11.0)",
], ],
description = """Kubernetes Cluster Bootstrapping Tool description = """Kubernetes Cluster Bootstrapping Tool

View File

@ -47,6 +47,8 @@ pkg_rpm(
changelog = "//:CHANGELOG.md", changelog = "//:CHANGELOG.md",
data = [ data = [
"10-kubeadm.conf", "10-kubeadm.conf",
"50-kubeadm.conf",
"kubeadm.conf",
"kubelet.env", "kubelet.env",
"//cmd/kubeadm", "//cmd/kubeadm",
], ],

View File

@ -11,7 +11,7 @@ Binaries to interface with the container runtime.
%prep %prep
# This has to be hard coded because bazel does a path substitution before rpm's %{version} is substituted. # This has to be hard coded because bazel does a path substitution before rpm's %{version} is substituted.
tar -xzf {crictl-v1.12.0-linux-amd64.tar.gz} tar -xzf {cri_tools.tgz}
%install %install
install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_bindir}

View File

@ -5,7 +5,7 @@ License: ASL 2.0
Summary: Container Cluster Manager - Kubernetes Cluster Bootstrapping Tool Summary: Container Cluster Manager - Kubernetes Cluster Bootstrapping Tool
Requires: kubelet >= 1.8.0 Requires: kubelet >= 1.8.0
Requires: kubectl >= 1.8.0 Requires: kubectl >= 1.8.0
Requires: kubernetes-cni >= 0.5.1 Requires: kubernetes-cni >= 0.6.0
Requires: cri-tools >= 1.11.0 Requires: cri-tools >= 1.11.0
URL: https://kubernetes.io URL: https://kubernetes.io
@ -22,9 +22,9 @@ install -p -m 755 -t %{buildroot}%{_bindir} {kubeadm}
install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ {10-kubeadm.conf} install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ {10-kubeadm.conf}
install -p -m 644 -T {kubelet.env} %{buildroot}%{_sysconfdir}/sysconfig/kubelet install -p -m 644 -T {kubelet.env} %{buildroot}%{_sysconfdir}/sysconfig/kubelet
mkdir -p %{buildroot}%{_libexecdir}/modules-load.d mkdir -p %{buildroot}%{_libexecdir}/modules-load.d
mkdir -p %{buildroot}%{_sysctldir} mkdir -p %{buildroot}/usr/lib/sysctl.d/
install -p -m 0644 -t %{buildroot}%{_libexecdir}/modules-load.d/ {kubeadm.conf} install -p -m 0644 -t %{buildroot}%{_libexecdir}/modules-load.d/ {kubeadm.conf}
install -p -m 0644 -t %{buildroot}%{_sysctldir} %{50-kubeadm.conf} install -p -m 0644 -t %{buildroot}/usr/lib/sysctl.d/ {50-kubeadm.conf}
%files %files
%{_bindir}/kubeadm %{_bindir}/kubeadm
@ -32,4 +32,4 @@ install -p -m 0644 -t %{buildroot}%{_sysctldir} %{50-kubeadm.conf}
%{_sysconfdir}/sysconfig/kubelet %{_sysconfdir}/sysconfig/kubelet
%dir %{_libexecdir}/modules-load.d %dir %{_libexecdir}/modules-load.d
%{_libexecdir}/modules-load.d/kubeadm.conf %{_libexecdir}/modules-load.d/kubeadm.conf
%{_sysctldir}/50-kubeadm.conf /usr/lib/sysctl.d/50-kubeadm.conf

View File

@ -6,13 +6,14 @@ Summary: Container Cluster Manager - Kubernetes Node Agent
URL: https://kubernetes.io URL: https://kubernetes.io
Requires: iptables >= 1.4.21 Requires: conntrack
Requires: kubernetes-cni >= 0.5.1 Requires: ebtables
Requires: socat
Requires: util-linux
Requires: ethtool Requires: ethtool
Requires: iproute Requires: iproute
Requires: ebtables Requires: iptables >= 1.4.21
Requires: kubernetes-cni >= 0.6.0
Requires: socat
Requires: util-linux
%description %description
The node agent of Kubernetes, the container cluster manager. The node agent of Kubernetes, the container cluster manager.

View File

@ -3,7 +3,6 @@ Version: OVERRIDE_THIS
Release: 00 Release: 00
License: ASL 2.0 License: ASL 2.0
Summary: Container Cluster Manager - CNI plugins Summary: Container Cluster Manager - CNI plugins
URL: https://kubernetes.io URL: https://kubernetes.io
%description %description
@ -11,7 +10,7 @@ Binaries required to provision container networking.
%prep %prep
mkdir -p ./bin mkdir -p ./bin
tar -C ./bin -xz -f {cni-plugins-amd64-v0.6.0.tgz} tar -C ./bin -xz -f {kubernetes_cni.tgz}
%install %install