diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-18 18:16:17 +0100 |
commit | fc637fb28da700da71ec2064d65ca5a7a31b9c6c (patch) | |
tree | 326613a08f25851c388715e205576a2e7d25dc4f /sys-cluster/kube-router | |
parent | b24bd25253fe093f722ab576d29fdc41d04cb1ee (diff) |
gentoo resync : 18.08.2019
Diffstat (limited to 'sys-cluster/kube-router')
-rw-r--r-- | sys-cluster/kube-router/Manifest | 6 | ||||
-rw-r--r-- | sys-cluster/kube-router/files/kube-router.confd | 11 | ||||
-rw-r--r-- | sys-cluster/kube-router/files/kube-router.initd | 22 | ||||
-rw-r--r-- | sys-cluster/kube-router/files/kube-router.logrotated | 7 | ||||
-rw-r--r-- | sys-cluster/kube-router/kube-router-0.3.1.ebuild | 48 | ||||
-rw-r--r-- | sys-cluster/kube-router/metadata.xml | 23 |
6 files changed, 117 insertions, 0 deletions
diff --git a/sys-cluster/kube-router/Manifest b/sys-cluster/kube-router/Manifest new file mode 100644 index 000000000000..562da0a5774e --- /dev/null +++ b/sys-cluster/kube-router/Manifest @@ -0,0 +1,6 @@ +AUX kube-router.confd 207 BLAKE2B 8023e994b94eddfbba3122027cddada217cb036fc4ebc6580302cb00b6caaf2d03669f2dd872dfbde57c0b4f5d5d8d697f7f5287f218ddf35a78fbfc0e74a7d2 SHA512 95213faa7e5323ee8ae58720adc2eebfd65844c16b69966cecea0910de13e8a9aa57982060f0350101e2baccd333114f4679f1de619a54a94a6634985f2ec251 +AUX kube-router.initd 712 BLAKE2B 83b75f0824a3e34119d6428b8fc5b2d702b3a8a2b1c41f8f335d4837fce3419e9cc3d20674e83f86dedbef8caf5b8c6d40517d96c735cf9b882c175896419435 SHA512 fd4f0fc424647d8cbf06af70971eb95088c0f45c93672067cd6cba647cbc145a79324539305850d4c7296730e6d7549cd25320f56580f71ed6097a13ccb48036 +AUX kube-router.logrotated 85 BLAKE2B 41c40f60ee686f7387e01c85345e6d8d3c562df2363ba3963a0f465d70a3439d2496931b94f05a1c607d04d4269fd087a4c0e1fd9c3a6f7db89d33bbc366bb30 SHA512 19e92adbc5ff8548784481cdc63d8010c386ea799350d7426c22f9b71c09c4ec9b1ec0a7e08069e1fb5cb51b0a37435ae42b12caf2d8679f2cb892fdc6bf96e1 +DIST kube-router-0.3.1.tar.gz 8468463 BLAKE2B 23ee608e6415b3627f5024c8778ae1f33c5db3c1c564d0eb1e0fcb45dd90ff4a148c39e7fd0a4888d6b4cf13b129c5249c2db868efa584f15e31c7ff539829d5 SHA512 185e3a58dc6112e33ed7dc5702795dd7be0a37b63c7c882a1c092060a57a755ea4ea5c2cc96c93210bee632a4a4c4b19f3506ceb44b96d4727cf62cb2f28818f +EBUILD kube-router-0.3.1.ebuild 1153 BLAKE2B bd792712692811fc912989b708650c519200bb6797bdc4c508cce898a3a74525806f567eb69f702813f129dc2d0833ed3d370ded82075fc89a268b7317e66aa6 SHA512 09f84ee984943c5fe96a9136c50d4b3cd64cd77069f7e4b864dcc5da4be60606e9b83605a4029f4d05eed591efaea689bc429ec168d48203d96475eb0116897c +MISC metadata.xml 848 BLAKE2B 3ba78ece1af8cf69ab50f10afdd24ff8765b1bace2ba02ec094dde976d216d7cb1afc9a2d69d6b674aa03bd842bfa453f0583380119bf8595fbc524fc9fd0e51 SHA512 5746d825adf43cbf15d4d9886194c1ab351497a0dc8110d9e19c879c306ac1e808c1986346de5f842b8b3910febebbe7b81f6c909f3ccd7067507b83396b166e diff --git a/sys-cluster/kube-router/files/kube-router.confd b/sys-cluster/kube-router/files/kube-router.confd new file mode 100644 index 000000000000..4b4b600ade8e --- /dev/null +++ b/sys-cluster/kube-router/files/kube-router.confd @@ -0,0 +1,11 @@ +# K8S_APISERVER='https://127.0.0.1:6443' +# KUBECONFIG=/etc/kubernetes/kube-router.kubeconfig + +# Leave empty to autodetect: +# HOSTNAME= + +# RUN_PROXY=true +# RUN_FIREWALL=true +# RUN_ROUTER=false + +EXTRA_ARGS='' diff --git a/sys-cluster/kube-router/files/kube-router.initd b/sys-cluster/kube-router/files/kube-router.initd new file mode 100644 index 000000000000..844b951bd837 --- /dev/null +++ b/sys-cluster/kube-router/files/kube-router.initd @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +description="Kubernetes routing engine" +supervisor=supervise-daemon +command="/usr/bin/kube-router" +error_log='/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log' +pidfile="${pidfile:-/run/${RC_SVCNAME}.pid}" + +command_args="--master=${K8S_APISERVER} --kubeconfig=${KUBECONFIG} \ + --run-service-proxy=${RUN_PROXY:-false} \ + --run-firewall=${RUN_FIREWALL:-false} \ + --run-router=${RUN_ROUTER:-false} \ + ${HOSTNAME:+--hostname-override=}${HOSTNAME} \ + ${EXTRA_ARGS}" + +extra_commands="clear" + +clear() { + "${command}" --cleanup-config +} diff --git a/sys-cluster/kube-router/files/kube-router.logrotated b/sys-cluster/kube-router/files/kube-router.logrotated new file mode 100644 index 000000000000..9b08d6715204 --- /dev/null +++ b/sys-cluster/kube-router/files/kube-router.logrotated @@ -0,0 +1,7 @@ +/var/log/kube-router/*.log { + missingok + size 5M + rotate 3 + compress + copytruncate +} diff --git a/sys-cluster/kube-router/kube-router-0.3.1.ebuild b/sys-cluster/kube-router/kube-router-0.3.1.ebuild new file mode 100644 index 000000000000..2d4a756b4076 --- /dev/null +++ b/sys-cluster/kube-router/kube-router-0.3.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +EGO_PN="github.com/cloudnativelabs/${PN}" + +inherit golang-build golang-vcs-snapshot + +KEYWORDS="~amd64" + +DESCRIPTION="A turnkey solution for Kubernetes networking" +HOMEPAGE="https://kube-router.io" +SRC_URI="https://github.com/cloudnativelabs/kube-router/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" + +RDEPEND=" + net-firewall/iptables[conntrack] + net-firewall/ipset + sys-cluster/ipvsadm +" + +src_compile() { + pushd src/${EGO_PN} || die + GOPATH="${S}" go build -x -work -v \ + -ldflags "-X 'github.com/cloudnativelabs/kube-router/pkg/cmd.version=${PV}' "\ +"-X 'github.com/cloudnativelabs/kube-router/pkg/cmd.buildDate=$(date -u +%FT%T%z)'" \ + -o kube-router cmd/kube-router/kube-router.go || die + popd || die +} + +src_test() { + : +} + +src_install() { + pushd src/${EGO_PN} || die + dobin ${PN} + dodoc *.md docs/*.md docs/*/* + popd || die + + newinitd "${FILESDIR}"/kube-router.initd kube-router + newconfd "${FILESDIR}"/kube-router.confd kube-router + + insinto /etc/logrotate.d + newins "${FILESDIR}"/kube-router.logrotated kube-router +} diff --git a/sys-cluster/kube-router/metadata.xml b/sys-cluster/kube-router/metadata.xml new file mode 100644 index 000000000000..468a7ec1342e --- /dev/null +++ b/sys-cluster/kube-router/metadata.xml @@ -0,0 +1,23 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kpp+gentoo@qrator.net</email> + <name>Konstantin Ignatov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + kube-router is an alternative to several network components used + in typical Kubernetes clusters. + + It handles IPVS/LVS based service proxy, Pod Networking and + Network Policy Controller tasks using standard Linux networking + stack and toolset. + </longdescription> + <upstream> + <remote-id type="github">cloudnativelabs/kube-router</remote-id> + </upstream> +</pkgmetadata> |