%global KUBE_VERSION 1.7.0 %global CNI_RELEASE 0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff %ifarch x86_64 %global ARCH amd64 %endif %ifarch ppc64le %global ARCH ppc64le %endif Name: kubelet Version: %{KUBE_VERSION} Release: 1%{?dist} Summary: Container cluster management License: ASL 2.0 ExclusiveArch: x86_64 ppc64le URL: https://kubernetes.io Source0: https://dl.k8s.io/v%{KUBE_VERSION}/bin/linux/%{ARCH}/kubelet Source1: kubelet.service Source2: https://dl.k8s.io/v%{KUBE_VERSION}/bin/linux/%{ARCH}/kubectl Source3: https://dl.k8s.io/v%{KUBE_VERSION}/bin/linux/%{ARCH}/kubeadm Source4: 10-kubeadm.conf Source5: https://dl.k8s.io/network-plugins/cni-amd64-%{CNI_RELEASE}.tar.gz Source6: https://dl.k8s.io/network-plugins/cni-ppc64le-%{CNI_RELEASE}.tar.gz Source7: 10-mynet.conf Source8: 99-loopback.conf Source9: kubeset BuildRequires: curl %{?systemd_requires} BuildRequires: systemd Requires: iptables >= 1.4.21 Requires: kubernetes-cni >= 0.5.1 Requires: socat Requires: util-linux Requires: ethtool Requires: iproute Requires: ebtables Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description The node agent of Kubernetes, the container cluster manager. %package -n kubectl Summary: Command-line utility for interacting with a Kubernetes cluster. %description -n kubectl Command-line utility for interacting with a Kubernetes cluster. %package -n kubeadm Summary: Command-line utility for administering a Kubernetes cluster. Requires: kubelet >= %{version} Requires: kubectl >= %{version} Requires: kubernetes-cni %description -n kubeadm Command-line utility for administering a Kubernetes cluster. %package -n kubeset Summary: Command-line utility for configuring a Kubernetes cluster. Requires: kubelet >= %{version} Requires: kubectl >= %{version} Requires: kubeadm >= %{version} Requires: kubernetes-cni %description -n kubeset Command-line utility for configuring a Kubernetes cluster. %package -n kubernetes-cni Version: 0.5.1 Release: 5%{?dist} Summary: Binaries required to provision kubernetes container networking Requires: kubelet %description -n kubernetes-cni Binaries required to provision container networking. %prep # Assumes the builder has overridden sourcedir to point to directory # with this spec file. (where these files are stored) Copy them into # the builddir so they can be installed. # This is a useful hack for faster Docker builds when working on the spec or # with locally obtained sources. # # Example: # spectool -gf kubelet.spec # rpmbuild --define "_sourcedir $PWD" -bb kubelet.spec # cp -p %SOURCE0 %{_builddir}/ cp -p %SOURCE1 %{_builddir}/ cp -p %SOURCE2 %{_builddir}/ cp -p %SOURCE3 %{_builddir}/ cp -p %SOURCE4 %{_builddir}/ %ifarch x86_64 %setup -D -T -a 5 -n %{_builddir}/ %endif %ifarch ppc64le %setup -D -T -a 6 -n %{_builddir}/ %endif %install install -m 755 -d %{buildroot}%{_bindir} install -m 755 -d %{buildroot}%{_unitdir} install -m 755 -d %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ install -m 755 -d %{buildroot}%{_sysconfdir}/cni/net.d/ install -m 755 -d %{buildroot}%{_sysconfdir}/kubernetes/manifests/ install -m 755 -d %{buildroot}/var/lib/kubelet/ install -p -m 755 -t %{buildroot}%{_bindir}/ kubelet install -p -m 755 -t %{buildroot}%{_bindir}/ kubectl install -p -m 755 -t %{buildroot}%{_bindir}/ kubeadm install -p -m 644 -t %{buildroot}%{_unitdir}/ kubelet.service install -p -m 644 -t %{buildroot}%{_sysconfdir}/systemd/system/kubelet.service.d/ 10-kubeadm.conf install -m 755 -d %{buildroot}/opt/cni%{_sysconfdir}/ # bin directory from cni-%{ARCH}-%{CNI_RELEASE}.tar.gz with a list of cni plugins (among other things) mv bin/ %{buildroot}/opt/cni/ install -p -m 644 -t %{buildroot}/opt/cni%{_sysconfdir}/ %{SOURCE7} %{SOURCE8} install -p -m 755 -t %{buildroot}%{_bindir}/ %{SOURCE9} %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %{_bindir}/kubelet %{_unitdir}/kubelet.service %{_sysconfdir}/kubernetes/manifests/ %files -n kubernetes-cni /opt/cni %{_sysconfdir}/cni/net.d/ %files -n kubectl %{_bindir}/kubectl %files -n kubeadm %{_bindir}/kubeadm %config(noreplace) %{_sysconfdir}/systemd/system/kubelet.service.d/10-kubeadm.conf %doc %files -n kubeset %{_bindir}/kubeset %changelog * Fri Jul 07 2017 Jean-Marc Liger - 1.7.0-1 - Bump version of kubelet and kubectl to v1.7.0. - Update 10-kubeadm.conf file - Update kubeset script for weave network and untaint master * Fri May 26 2017 Jean-Marc Liger - 1.6.4-1 - Bump version of kubelet and kubectl to v1.6.4. - Update kubeset script * Mon May 15 2017 Jean-Marc Liger - 1.6.3-2 - Add conf files and kubeset subpackage * Wed May 10 2017 Jean-Marc Liger - 1.6.3-1 - Bump version of kubelet and kubectl to v1.6.3. - Add kubectl systemd post|preun|postun - Update permissions files - ExclusiveArch x86_64 ppc64le * Wed May 03 2017 Jean-Marc Liger - 1.6.2-1 - Rebuild for COPR EL7 - Add noreplace to 10-kubeadm.conf * Wed Apr 26 2017 Jacob Beacham - 1.6.2 - Bump version of kubelet and kubectl to v1.6.2. * Mon Apr 3 2017 Mike Danese - 1.6.1 - Bump version of kubelet and kubectl to v1.6.1. * Tue Mar 28 2017 Lucas Käldström - Bump CNI version to v0.5.1. * Wed Mar 15 2017 Lucas Käldström - 1.6.0 - Bump version of kubelet, kubectl and kubeadm to v1.6.0. * Tue Dec 13 2016 Mike Danese - 1.5.4 - Bump version of kubelet and kubectl to v1.5.4. * Tue Dec 13 2016 Lucas Käldström - 1.5.1 - Bump version of kubelet and kubectl to v1.5.1, plus kubeadm to the third stable version * Tue Dec 6 2016 Lucas Käldström - 1.5.0-beta.2 - Bump version of kubelet and kubectl * Wed Nov 16 2016 Alexander Kanevskiy - fix iproute and mount dependencies (#204) * Sun Nov 6 2016 Lucas Käldström - Sync the debs and rpm files; add some kubelet dependencies to the rpm manifest * Wed Nov 2 2016 Lucas Käldström - Bump version of kubeadm to v1.5.0-alpha.2.380+85fe0f1aadf91e * Fri Oct 21 2016 Ilya Dmitrichenko - 1.4.4-0 - Bump version of kubelet and kubectl * Mon Oct 17 2016 Lucas Käldström - 1.4.3-0 - Bump version of kubeadm * Fri Oct 14 2016 Matthew Mosesohn - 1.4.0-1 - Allow locally built/previously downloaded binaries * Tue Sep 20 2016 dgoodwin - 1.4.0-0 - Add kubectl and kubeadm sub-packages. - Rename to kubernetes-cni. - Update versions of CNI. * Wed Jul 20 2016 dgoodwin - 1.3.4-1 - Initial packaging.