#!/bin/sh # # PROVIDE: kube-scheduler # REQUIRE: DAEMON # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable kube-scheduler: # # kube-scheduler_enable="YES" . /etc/rc.subr name="kube_scheduler" rcvar="kube_scheduler_enable" load_rc_config $name : ${kube_scheduler_enable:=no} : ${kube_scheduler_args:="--config=/usr/local/etc/kubernetes/scheduler.yaml --bind-address=0.0.0.0 --v=2"} pidfile="/var/run/${name}.pid" command="/usr/sbin/daemon" command_args="-P ${pidfile} -r -S -t ${name} -T ${name} /usr/local/bin/kube-scheduler ${kube_scheduler_args}" run_rc_command "$1"