mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Add more global env vars to local-up-cluster.sh
Signed-off-by: André Martins <aanm90@gmail.com>
This commit is contained in:
@@ -105,6 +105,7 @@ set +e
|
||||
|
||||
API_PORT=${API_PORT:-8080}
|
||||
API_HOST=${API_HOST:-127.0.0.1}
|
||||
KUBELET_HOST=${KUBELET_HOST:-"127.0.0.1"}
|
||||
# By default only allow CORS for requests on localhost
|
||||
API_CORS_ALLOWED_ORIGINS=${API_CORS_ALLOWED_ORIGINS:-"/127.0.0.1(:[0-9]+)?$,/localhost(:[0-9]+)?$"}
|
||||
KUBELET_PORT=${KUBELET_PORT:-10250}
|
||||
@@ -277,7 +278,7 @@ function start_apiserver {
|
||||
--insecure-bind-address="${API_HOST}" \
|
||||
--insecure-port="${API_PORT}" \
|
||||
--advertise-address="${API_HOST}" \
|
||||
--etcd-servers="http://127.0.0.1:4001" \
|
||||
--etcd-servers="http://${ETCD_HOST}:${ETCD_PORT}" \
|
||||
--service-cluster-ip-range="10.0.0.0/24" \
|
||||
--cloud-provider="${CLOUD_PROVIDER}" \
|
||||
--cors-allowed-origins="${API_CORS_ALLOWED_ORIGINS}" >"${APISERVER_LOG}" 2>&1 &
|
||||
@@ -352,7 +353,7 @@ function start_kubelet {
|
||||
--rkt-stage1-image="${RKT_STAGE1_IMAGE}" \
|
||||
--hostname-override="${HOSTNAME_OVERRIDE}" \
|
||||
--cloud-provider="${CLOUD_PROVIDER}" \
|
||||
--address="127.0.0.1" \
|
||||
--address="${KUBELET_HOST}" \
|
||||
--api-servers="${API_HOST}:${API_PORT}" \
|
||||
--cpu-cfs-quota=${CPU_CFS_QUOTA} \
|
||||
${dns_args} \
|
||||
|
||||
Reference in New Issue
Block a user