void-packages/srcpkgs/k3s/files/k3s-agent/run
Noel Cower 997c6de534 k3s: update to 1.0.0.
Moves most vsed stuff into the given patch. Part of this is to force
reviewing it each time it doesn't apply cleanly (it probably won't most
of the time), the other is to stop cramming things into vsed, since
that's hackier than just patching the files.

0.10.x onward adds a dependency on ipset and conntrack-tools. Without
ipset, k3s will crash upon startup. Not having conntrack appears to be
a non-crashing error, but will result in error logs when deleting stale
service IPs.

This adds a new distfile, part of which motivated the patching, to
avoid running a direct 'git clone' of a repository in the build script.

Services now redirect stderr to stdout, as they probably weren't
capturing log output before.

hyperkube is no longer provided in k3s. As a result, k3s no longer
conflicts with kubernetes.
2019-12-02 19:52:22 +01:00

11 lines
272 B
Bash
Executable file

#!/bin/sh
set --
[ -r /etc/k3s/config ] && . /etc/k3s/config
[ -r conf ] && . ./conf
if [ 0 = $# ]; then
set -- \
${K3S_SERVER:+--server="${K3S_SERVER}"} \
${K3S_TOKEN:+--token="${K3S_TOKEN}"}
fi
exec 2>&1
exec k3s agent ${K3S_OPTIONS} ${K3S_AGENT_OPTIONS} "$@"