File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,10 @@ const (
262
262
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
263
263
DefaultEtcdVersion = "3.3.15"
264
264
265
+ // DefaultEtcdImageVersion indicates the etcd image version that kubeadm uses.
266
+ // For example, the image version of "k8s.gcr.io/etcd:3.3.15-0" is "0".
267
+ DefaultEtcdImageVersion = "0"
268
+
265
269
// PauseVersion indicates the default pause image version for kubeadm
266
270
PauseVersion = "3.1"
267
271
@@ -424,8 +428,8 @@ var (
424
428
13 : "3.2.24" ,
425
429
14 : "3.3.10" ,
426
430
15 : "3.3.10" ,
427
- 16 : "3.3.15" ,
428
- 17 : "3.3.15" ,
431
+ 16 : "3.3.15-0 " ,
432
+ 17 : "3.3.15-0 " ,
429
433
}
430
434
431
435
// KubeadmCertsClusterRoleName sets the name for the ClusterRole that allows
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func GetEtcdImage(cfg *kubeadmapi.ClusterConfiguration) string {
68
68
etcdImageRepository = cfg .Etcd .Local .ImageRepository
69
69
}
70
70
// Etcd uses an imageTag that corresponds to the etcd version matching the Kubernetes version
71
- etcdImageTag := constants .DefaultEtcdVersion
71
+ etcdImageTag := fmt . Sprintf ( "%s-%s" , constants .DefaultEtcdVersion , constants . DefaultEtcdImageVersion )
72
72
etcdVersion , err := constants .EtcdSupportedVersion (cfg .KubernetesVersion )
73
73
if err == nil {
74
74
etcdImageTag = etcdVersion .String ()
You can’t perform that action at this time.
0 commit comments