diff --git a/cluster/gce/util.sh b/cluster/gce/util.sh index 4b69e963339..28c491073e3 100755 --- a/cluster/gce/util.sh +++ b/cluster/gce/util.sh @@ -34,7 +34,8 @@ if [[ "${OS_DISTRIBUTION}" == "gci" ]]; then # If the master image is not set, we use the latest GCI dev image. # Otherwise, we respect whatever is set by the user. gci_images=( $(gcloud compute images list --project google-containers \ - --regexp='gci-dev.*' --format='value(name)') ) + --show-deprecated --no-standard-images --sort-by='~creationTimestamp' \ + --regexp='gci-[a-z]+-52-.*' --format='table[no-heading](name)') ) MASTER_IMAGE=${KUBE_GCE_MASTER_IMAGE:-"${gci_images[0]}"} MASTER_IMAGE_PROJECT=${KUBE_GCE_MASTER_PROJECT:-google-containers} # The default node image when using GCI is still the Debian based ContainerVM