Skip to content

Commit e4d521e

Browse files
author
Jake Sanders
committed
disable the apiserver insecure port by default in configure-helper
1 parent ff4c372 commit e4d521e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cluster/gce/gci/configure-helper.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ function start-kube-apiserver {
15401540
params+=" --etcd-keyfile=${ETCD_APISERVER_CLIENT_KEY_PATH}"
15411541
fi
15421542
params+=" --secure-port=443"
1543-
if [[ "${ENABLE_APISERVER_INSECURE_PORT:-true}" != "true" ]]; then
1543+
if [[ "${ENABLE_APISERVER_INSECURE_PORT:-false}" != "true" ]]; then
15441544
# Default is :8080
15451545
params+=" --insecure-port=0"
15461546
fi
@@ -2886,7 +2886,7 @@ function main() {
28862886
KUBE_CONTROLLER_MANAGER_TOKEN="$(secure_random 32)"
28872887
KUBE_SCHEDULER_TOKEN="$(secure_random 32)"
28882888
KUBE_CLUSTER_AUTOSCALER_TOKEN="$(secure_random 32)"
2889-
if [[ "${ENABLE_APISERVER_INSECURE_PORT:-true}" != "true" ]]; then
2889+
if [[ "${ENABLE_APISERVER_INSECURE_PORT:-false}" != "true" ]]; then
28902890
KUBE_BOOTSTRAP_TOKEN="$(secure_random 32)"
28912891
fi
28922892
if [[ "${ENABLE_L7_LOADBALANCING:-}" == "glbc" ]]; then

0 commit comments

Comments
 (0)