void-packages/srcpkgs/kubernetes/files/kube-apiserver/run

16 lines
403 B
Bash

#!/bin/sh
exec 2>&1
[ -r /etc/kubernetes/config ] && . /etc/kubernetes/config
[ -r /etc/kubernetes/apiserver ] && . /etc/kubernetes/apiserver
exec chpst -u kube:kube kube-apiserver \
$KUBE_LOGTOSTDERR \
$KUBE_LOG_LEVEL \
$KUBE_ETCD_SERVERS \
$KUBE_API_ADDRESS \
$KUBE_API_PORT \
$KUBELET_PORT \
$KUBE_ALLOW_PRIV \
$KUBE_SERVICE_ADDRESSES \
$KUBE_ADMISSION_CONTROL \
$KUBE_API_ARGS 2>/dev/null