Install this version:
emerge -a =sys-cluster/k3s-bin-1.36.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-cluster/k3s-bin-1.36.1
Or alternatively:
emerge --autounmask-write -a =sys-cluster/k3s-bin-1.36.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.36.1 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 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
einfo "Installing systemd files..."
systemd_dounit "${FILESDIR}/k3s.service"
newinitd "${FILESDIR}/k3s.initd" k3s
newconfd "${FILESDIR}/k3s.confd" k3s
einfo "Installing OpenRC files..."
insinto /etc/logrotate.d
newins "${FILESDIR}/k3s.logrotated" k3
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | k3s-bin-1.36.1-github-release-amd64 | 79200418 bytes | https://github.com/k3s-io/k3s/releases/download/v1.36.1+k3s1/k3s |
| DIST | k3s-bin-1.36.1-github-release-arm64 | 71762082 bytes | https://github.com/k3s-io/k3s/releases/download/v1.36.1+k3s1/k3s-arm64 |