mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
fix: remove insecure flag from configure-kubeapiserver.sh
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
This commit is contained in:
parent
cd3bafc2ed
commit
fe448785b5
@ -67,7 +67,6 @@ function start-kube-apiserver {
|
||||
|
||||
# Calculate variables and assemble the command line.
|
||||
local params="${API_SERVER_TEST_LOG_LEVEL:-"--v=2"} ${APISERVER_TEST_ARGS:-} ${CLOUD_CONFIG_OPT}"
|
||||
params+=" --address=127.0.0.1"
|
||||
params+=" --allow-privileged=true"
|
||||
params+=" --cloud-provider=gce"
|
||||
params+=" --client-ca-file=${CA_CERT_BUNDLE_PATH}"
|
||||
@ -76,10 +75,6 @@ function start-kube-apiserver {
|
||||
configure-etcd-params params
|
||||
|
||||
params+=" --secure-port=443"
|
||||
if [[ "${ENABLE_APISERVER_INSECURE_PORT:-false}" != "true" ]]; then
|
||||
# Default is :8080
|
||||
params+=" --insecure-port=0"
|
||||
fi
|
||||
params+=" --tls-cert-file=${APISERVER_SERVER_CERT_PATH}"
|
||||
params+=" --tls-private-key-file=${APISERVER_SERVER_KEY_PATH}"
|
||||
if [[ -n "${OLD_MASTER_IP:-}" ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user