Merge pull request #10554 from geojaz/update_gce_images

Updates GCE channels to use ubuntu over COS
This commit is contained in:
Kubernetes Prow Robot 2021-01-10 23:01:06 -08:00 committed by GitHub
commit 225e5ef178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 1 deletions

View File

@ -53,6 +53,10 @@ spec:
- providerID: gce
kubernetesVersion: ">=1.16.0-alpha.1"
name: "cos-cloud/cos-stable-77-12371-114-0"
# Note: Updated from cos to ubuntu for parity with aws.
- providerID: gce
kubernetesVersion: ">=1.17.0"
name: "ubuntu-os-cloud/ubuntu-2004-focal-v20210108"
cluster:
kubernetesVersion: v1.5.8
networking:

View File

@ -53,6 +53,10 @@ spec:
- providerID: gce
kubernetesVersion: ">=1.16.0-alpha.1"
name: "cos-cloud/cos-stable-77-12371-114-0"
# Note: Updated from cos to ubuntu for parity with aws.
- providerID: gce
kubernetesVersion: ">=1.17.0"
name: "ubuntu-os-cloud/ubuntu-2004-focal-v20210108"
cluster:
kubernetesVersion: v1.5.8
networking:

View File

@ -10,6 +10,8 @@
* Following kubeadm, control plane nodes are now labelled with `node-role.kubernetes.io/control-plane=""`
* Default node image for GCE changed from COS to Ubuntu for K8s versions >= 1.17.0. This is to more closely align with the AWS implementation (the most mature support) and because COS limits the ability to modify files on its disk.
# Breaking changes
* Support for Kubernetes 1.11 and 1.12 has been removed.

View File

@ -328,5 +328,6 @@ func RecommendedKubernetesVersion(c *Channel, kopsVersionString string) *semver.
func (c *Channel) HasUpstreamImagePrefix(image string) bool {
return strings.HasPrefix(image, "kope.io/k8s-") ||
strings.HasPrefix(image, "099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-") ||
strings.HasPrefix(image, "cos-cloud/cos-stable-")
strings.HasPrefix(image, "cos-cloud/cos-stable-") ||
strings.HasPrefix(image, "ubuntu-os-cloud/ubuntu-")
}