sys-cluster/k3s-bin - 1.35.1 (myov)

Search

Install

Install this version:

emerge -a =sys-cluster/k3s-bin-1.35.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sys-cluster/k3s-bin-1.35.1

Or alternatively:

emerge --autounmask-write -a =sys-cluster/k3s-bin-1.35.1

Package Information

Description:
Lightweight Kubernetes (binary package)
Homepage:
https://k3s.io/ https://github.com/k3s-io/k3s/
License:
Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
1.35.1 8 ~amd64 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit systemd

DESCRIPTION="Lightweight Kubernetes (binary package)"
HOMEPAGE="https://k3s.io/
	https://github.com/k3s-io/k3s/"
SRC_URI="
	amd64? (
		https://github.com/k3s-io/k3s/releases/download/v${PV}+k3s1/k3s
			-> ${P}-github-release-amd64
	)
	arm64? (
		https://github.com/k3s-io/k3s/releases/download/v${PV}+k3s1/k3s-arm64
			-> ${P}-github-release-arm64
	)
"
S="${WORKDIR}"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RESTRICT="strip"

RDEPEND="
	>=net-firewall/conntrack-tools-1.4.8
	app-containers/slirp4netns
	app-misc/yq-go
"

QA_PREBUILT="*"

src_unpack() {
	if use amd64 ; then
		cp "${DISTDIR}/${P}-github-release-amd64" "${WORKDIR}/k3s" || die
	elif use arm64 ; then
		cp "${DISTDIR}/${P}-github-release-arm64" "${WORKDIR}/k3s" || die
	else
		die "Current architecture is unsupported"
	fi
}

src_install() {
	exeinto /usr/bin
	doexe k3s
	newexe "${FILESDIR}/k3s-killall.sh" k3s-killall

	systemd_dounit "${FILESDIR}/k3s.service"
	newinitd "${FILESDIR}/k3s.initd" k3s
	newconfd "${FILESDIR}/k3s.confd" k3s

	insinto /etc/logrotate.d
	newins "${FILESDIR}/k3s.logrotated" k3
}

Inherited Eclasses

Dependencies

RDEPEND

	>=net-firewall/conntrack-tools-1.4.8
	app-containers/slirp4netns
	app-misc/yq-go

Manifest for 1.35.1

Type File Size Source URLs
DIST k3s-bin-1.35.1-github-release-amd64 75555000 bytes https://github.com/k3s-io/k3s/releases/download/v1.35.1+k3s1/k3s
DIST k3s-bin-1.35.1-github-release-arm64 67895480 bytes https://github.com/k3s-io/k3s/releases/download/v1.35.1+k3s1/k3s-arm64