ports/net/kube-apiserver/files/kube-apiserver.in
Loic Blot db9dab9d84 net/kube-apiserver: Add new port
The Kubernetes API server validates and configures data for the api
objects which include pods, services, replicationcontrollers,
and others. The API Server services REST operations and provides
the frontend to the cluster's shared state through which all other
components interact.

Note: while testing this as a replacement of a Linux based on my lab,
I only saw Webhooks not working due to Kubernetes network mesh not implemented.
I added a notice about this for people who want to test it.

PR:		267308
2023-01-20 12:50:24 +01:00

24 lines
546 B
Bash
Executable file

#!/bin/sh
#
# PROVIDE: kube-apiserver
# REQUIRE: DAEMON
# KEYWORD: shutdown
# Add the following lines to /etc/rc.conf to enable kube-apiserver:
#
# kube-apiserver_enable="YES"
. /etc/rc.subr
name="kube_apiserver"
rcvar="kube_apiserver_enable"
load_rc_config $name
: ${kube_apiserver_enable:=no}
: ${kube_apiserver_args:="--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-apiserver ${kube_apiserver_args}"
run_rc_command "$1"