gce: plumb --kubelet-certificate-authority flag to apiserver

We want to start signing kubelets' serving certs with cluster CA. This
flag is required to enforce that on apiserver side.
This commit is contained in:
Andrew Lytvynov 2018-04-30 15:16:22 -07:00
parent b36743fe30
commit e86bdf5801

View File

@ -1583,6 +1583,9 @@ function start-kube-apiserver {
if [[ "${ENABLE_APISERVER_LOGS_HANDLER:-}" == "false" ]]; then
params+=" --enable-logs-handler=false"
fi
if [[ -n "${APISERVER_KUBELET_CA:-}" ]]; then
params+=" --kubelet-certificate-authority=${APISERVER_KUBELET_CA}"
fi
local admission_controller_config_mount=""
local admission_controller_config_volume=""