d452e62f |
Summary: Overlay network for containers based on etcd
Name: flannel |
4e5812f1 |
Version: 0.9.1 |
2311ef8c |
Release: 1%{?dist} |
d452e62f |
License: ASL 2.0
URL: https://github.com/coreos/flannel |
a072c318 |
Source0: https://github.com/coreos/flannel/archive/%{name}-%{version}.tar.gz |
4e5812f1 |
%define sha1 flannel=6182ef01f4ce21c1173c3124983b4d2b9331d28a |
d452e62f |
Group: Development/Tools
Vendor: VMware, Inc.
Distribution: Photon
BuildRequires: etcd >= 2.0.0
BuildRequires: gcc |
f14e6e41 |
BuildRequires: unzip |
d452e62f |
BuildRequires: go
Requires: etcd >= 2.0.0 |
ea8a3d4a |
%define debug_package %{nil} |
d452e62f |
%description
flannel is a virtual network that provides a subnet to a container runtime
host OS for use with containers. flannel uses etcd to store the network
configuration, allocated subnets, and additional data.
%prep |
a072c318 |
%setup -cqn src/github.com/coreos/
|
d452e62f |
%build |
a072c318 |
export GOPATH=%{_builddir}
echo $GOAPTH
mv %{name}-%{version} %{name}
pushd %{name} |
b86ada0d |
make dist/flanneld |
a072c318 |
popd |
d452e62f |
%install
install -vdm 755 %{buildroot}%{_bindir} |
a072c318 |
install -vpm 0755 -t %{buildroot}%{_bindir}/ %{name}/dist/flanneld |
d452e62f |
|
ea8a3d4a |
install -vdm 0755 %{buildroot}/usr/share/flannel/docker
install -vpm 0755 -t %{buildroot}/usr/share/flannel/docker/ %{name}/dist/mk-docker-opts.sh
install -vdm 0755 %{buildroot}%{_sysconfdir}/flannel
cat << EOF >> %{buildroot}%{_sysconfdir}/flannel/flanneld.conf
###
# flanneld configuration
#
# etcd endpoints
ETCD_ENDPOINTS="http://127.0.0.1:4001,http://127.0.0.1:2379"
# flannel network config
FLANNEL_NETWORK_CONF='{"Network": "172.17.0.0/16"}'
# kubernetes api server URL
KUBE_API_URL="http://localhost:8080"
# additional flannel options
FLANNEL_OPTIONS=""
EOF
mkdir -p %{buildroot}/usr/lib/systemd/system
cat << EOF >> %{buildroot}/usr/lib/systemd/system/flanneld.service
[Unit]
Description=flanneld overlay network service
After=network.target etcd.service
Before=docker.service
[Service]
Type=notify
EnvironmentFile=-/etc/flannel/flanneld.conf
ExecStartPre=-/usr/bin/etcdctl mk /vmware/network/config \${FLANNEL_NETWORK_CONF}
ExecStart=/usr/bin/flanneld -etcd-prefix=/vmware/network -etcd-endpoints=\${ETCD_ENDPOINTS} --kube-api-url=\${KUBE_API_URL} \${FLANNEL_OPTIONS}
Restart=on-failure
[Install]
WantedBy=multi-user.target
RequiredBy=docker.service
EOF
|
d452e62f |
%check |
e5c241f2 |
cd %{name}
GOPATH=%{_builddir} make test |
ea8a3d4a |
|
d452e62f |
%post
%postun
%files
%defattr(-,root,root)
%{_bindir}/flanneld |
ea8a3d4a |
%{_libdir}/systemd/system/flanneld.service
/usr/share/flannel/docker/mk-docker-opts.sh
%config(noreplace) %{_sysconfdir}/flannel/flanneld.conf |
d452e62f |
%changelog |
4e5812f1 |
* Tue Dec 05 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.9.1-1
- Flannel 0.9.1. |
2311ef8c |
* Tue Nov 14 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.9.0-1
- Flannel 0.9.0. |
e5c241f2 |
* Fri Sep 01 2017 Chang Lee <changlee@vmware.com> 0.8.0-2
- Fixed %check according to version upgrade |
ea8a3d4a |
* Tue Aug 08 2017 Vinay Kulkarni <kulkarniv@vmware.com> 0.8.0-1
- Flannel 0.8.0 and systemd service file.
* Fri May 05 2017 Chang Lee <changlee@vmware.com> 0.7.1-1
- Updated to version 0.7.1
* Tue Apr 04 2017 Chang Lee <changlee@vmware.com> 0.7.0-1
- Updated to version 0.7.0
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 0.5.5-2
- GA - Bump release of all rpms
* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 0.5.5-1
- Upgraded to version 0.5.5
* Mon Aug 03 2015 Vinay Kulkarni <kulkarniv@vmware.com> 0.5.2-1
- Add flannel package to photon. |