FIXES: https://github.com/kubernetes/kubeadm/issues/1287 - This commit integrates the work of @jdetiber to fix bazel build //build/rpms and also addresses an issue where not all common versions of rpmbuild have the %{_sysctldir} macro. - Since that macro points to /usr/lib/sysctl.d this commit just points directly to that dir. - This also adds conntrack as a dependency of kubelet for both rpm and deb builds. Signed-off-by: Duffie Cooley <dcooley@heptio.com>
24 lines
458 B
RPMSpec
24 lines
458 B
RPMSpec
Name: kubernetes-cni
|
|
Version: OVERRIDE_THIS
|
|
Release: 00
|
|
License: ASL 2.0
|
|
Summary: Container Cluster Manager - CNI plugins
|
|
URL: https://kubernetes.io
|
|
|
|
%description
|
|
Binaries required to provision container networking.
|
|
|
|
%prep
|
|
mkdir -p ./bin
|
|
tar -C ./bin -xz -f {kubernetes_cni.tgz}
|
|
|
|
%install
|
|
|
|
install -m 755 -d %{buildroot}%{_sysconfdir}/cni/net.d/
|
|
install -m 755 -d %{buildroot}/opt/cni
|
|
mv bin/ %{buildroot}/opt/cni/
|
|
|
|
%files
|
|
/opt/cni
|
|
%{_sysconfdir}/cni/net.d/
|