diff options
Diffstat (limited to 'sys-cluster/kube-controller-manager/files')
3 files changed, 35 insertions, 0 deletions
diff --git a/sys-cluster/kube-controller-manager/files/kube-controller-manager.confd b/sys-cluster/kube-controller-manager/files/kube-controller-manager.confd new file mode 100644 index 000000000000..155c43a07561 --- /dev/null +++ b/sys-cluster/kube-controller-manager/files/kube-controller-manager.confd @@ -0,0 +1,9 @@ +### +# kubernetes system config +# +# The following values are used to configure the kube-controller-manager +# + +# Add your own! +command_args="" + diff --git a/sys-cluster/kube-controller-manager/files/kube-controller-manager.initd b/sys-cluster/kube-controller-manager/files/kube-controller-manager.initd new file mode 100644 index 000000000000..276197f06562 --- /dev/null +++ b/sys-cluster/kube-controller-manager/files/kube-controller-manager.initd @@ -0,0 +1,19 @@ +#!/sbin/openrc-run +# Copyright 2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="Kubernetes Controller Manager service" +pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} +user=${user:-${RC_SVCNAME}} +group=${group:-${RC_SVCNAME}} + +command="/usr/bin/kube-controller-manager" +command_args="${command_args}" +command_background="true" +start_stop_daemon_args="--user ${user} --group ${group} \ + --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ + --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" + +depend() { + after net +} diff --git a/sys-cluster/kube-controller-manager/files/kube-controller-manager.logrotated b/sys-cluster/kube-controller-manager/files/kube-controller-manager.logrotated new file mode 100644 index 000000000000..a74eca94abf1 --- /dev/null +++ b/sys-cluster/kube-controller-manager/files/kube-controller-manager.logrotated @@ -0,0 +1,7 @@ +/var/log/kube-controller-manager/* { + missingok + size 5M + rotate 3 + compress + copytruncate +} |