diff --git a/cluster/gce/gci/configure-helper.sh b/cluster/gce/gci/configure-helper.sh index 87327b1ca56..2817379bdfa 100644 --- a/cluster/gce/gci/configure-helper.sh +++ b/cluster/gce/gci/configure-helper.sh @@ -619,7 +619,12 @@ function append_or_replace_prefixed_line { function write-pki-data { local data="${1}" local path="${2}" - (umask 077; echo "${data}" | base64 --decode > "${path}") + if [[ -n "${KUBE_PKI_READERS_GROUP:-}" ]]; then + (umask 027; echo "${data}" | base64 --decode > "${path}") + chgrp "${KUBE_PKI_READERS_GROUP:-}" "${path}" + else + (umask 077; echo "${data}" | base64 --decode > "${path}") + fi } function create-node-pki {