diff --git a/pkg/actions/cluster/upgrade.go b/pkg/actions/cluster/upgrade.go index 4e517a8d1d..ff957702cc 100644 --- a/pkg/actions/cluster/upgrade.go +++ b/pkg/actions/cluster/upgrade.go @@ -120,6 +120,8 @@ func getNextVersion(currentVersion string) (string, error) { return api.Version1_24, nil case api.Version1_24: return api.Version1_25, nil + case api.Version1_25: + return api.Version1_26, nil default: // version of control plane is not known to us, maybe we are just too old... return "", fmt.Errorf("control plane version %q is not known to this version of eksctl, try to upgrade eksctl first", currentVersion) diff --git a/pkg/actions/cluster/upgrade_test.go b/pkg/actions/cluster/upgrade_test.go index dba5d59911..f17bb3ed8b 100644 --- a/pkg/actions/cluster/upgrade_test.go +++ b/pkg/actions/cluster/upgrade_test.go @@ -87,9 +87,9 @@ var _ = Describe("upgrade cluster", func() { }), Entry("fails when the version is still not supported", upgradeCase{ - givenVersion: "1.25", + givenVersion: "1.26", eksVersion: api.LatestVersion, - expectedErrorText: "control plane version \"1.25\" is not known to this version of eksctl", + expectedErrorText: "control plane version \"1.26\" is not known to this version of eksctl", }), ) }) diff --git a/pkg/actions/nodegroup/testdata/al2-updated-template.json b/pkg/actions/nodegroup/testdata/al2-updated-template.json index 29b2b9eb44..0720b138fe 100644 --- a/pkg/actions/nodegroup/testdata/al2-updated-template.json +++ b/pkg/actions/nodegroup/testdata/al2-updated-template.json @@ -130,7 +130,7 @@ ] }, "NodegroupName": "amazonlinux2", - "ReleaseVersion": "1.24-20201212", + "ReleaseVersion": "1.25-20201212", "ScalingConfig": { "DesiredSize": 4, "MaxSize": 4, diff --git a/pkg/actions/nodegroup/testdata/br-updated-template.json b/pkg/actions/nodegroup/testdata/br-updated-template.json index de3df5d836..861069ac5e 100644 --- a/pkg/actions/nodegroup/testdata/br-updated-template.json +++ b/pkg/actions/nodegroup/testdata/br-updated-template.json @@ -148,7 +148,7 @@ "alpha.eksctl.io/nodegroup-name": "br", "alpha.eksctl.io/nodegroup-type": "managed" }, - "Version": "1.24" + "Version": "1.25" } }, "NodeInstanceRole": { diff --git a/pkg/addons/default/assets/coredns-1.25.json b/pkg/addons/default/assets/coredns-1.25.json new file mode 100644 index 0000000000..a6ecb1b6c4 --- /dev/null +++ b/pkg/addons/default/assets/coredns-1.25.json @@ -0,0 +1,375 @@ +{ + "apiVersion": "v1", + "items": [ + { + "apiVersion": "v1", + "kind": "Service", + "metadata": { + "annotations": { + "prometheus.io/port": "9153", + "prometheus.io/scrape": "true" + }, + "labels": { + "eks.amazonaws.com/component": "kube-dns", + "k8s-app": "kube-dns", + "kubernetes.io/cluster-service": "true", + "kubernetes.io/name": "CoreDNS" + }, + "name": "kube-dns", + "namespace": "kube-system" + }, + "spec": { + "internalTrafficPolicy": "Cluster", + "ipFamilies": [ + "IPv4" + ], + "ipFamilyPolicy": "SingleStack", + "ports": [ + { + "name": "dns", + "port": 53, + "protocol": "UDP", + "targetPort": 53 + }, + { + "name": "dns-tcp", + "port": 53, + "protocol": "TCP", + "targetPort": 53 + } + ], + "selector": { + "k8s-app": "kube-dns" + }, + "sessionAffinity": "None", + "type": "ClusterIP" + } + }, + { + "apiVersion": "v1", + "kind": "ServiceAccount", + "metadata": { + "annotations": {}, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns" + }, + "name": "coredns", + "namespace": "kube-system" + } + }, + { + "apiVersion": "v1", + "data": { + "Corefile": ".:53 {\n errors\n health\n kubernetes cluster.local in-addr.arpa ip6.arpa {\n pods insecure\n fallthrough in-addr.arpa ip6.arpa\n }\n prometheus :9153\n forward . /etc/resolv.conf\n cache 30\n loop\n reload\n loadbalance\n}\n" + }, + "kind": "ConfigMap", + "metadata": { + "annotations": {}, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns" + }, + "name": "coredns", + "namespace": "kube-system" + } + }, + { + "apiVersion": "apps/v1", + "kind": "Deployment", + "metadata": { + "annotations": {}, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns", + "kubernetes.io/name": "CoreDNS" + }, + "name": "coredns", + "namespace": "kube-system" + }, + "spec": { + "progressDeadlineSeconds": 600, + "replicas": 2, + "revisionHistoryLimit": 10, + "selector": { + "matchLabels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns" + } + }, + "strategy": { + "rollingUpdate": { + "maxSurge": "25%", + "maxUnavailable": 1 + }, + "type": "RollingUpdate" + }, + "template": { + "metadata": { + "annotations": { + "eks.amazonaws.com/compute-type": "ec2" + }, + "creationTimestamp": null, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns" + } + }, + "spec": { + "affinity": { + "nodeAffinity": { + "requiredDuringSchedulingIgnoredDuringExecution": { + "nodeSelectorTerms": [ + { + "matchExpressions": [ + { + "key": "kubernetes.io/os", + "operator": "In", + "values": [ + "linux" + ] + }, + { + "key": "kubernetes.io/arch", + "operator": "In", + "values": [ + "amd64", + "arm64" + ] + } + ] + } + ] + } + }, + "podAntiAffinity": { + "preferredDuringSchedulingIgnoredDuringExecution": [ + { + "podAffinityTerm": { + "labelSelector": { + "matchExpressions": [ + { + "key": "k8s-app", + "operator": "In", + "values": [ + "kube-dns" + ] + } + ] + }, + "topologyKey": "kubernetes.io/hostname" + }, + "weight": 100 + } + ] + } + }, + "containers": [ + { + "args": [ + "-conf", + "/etc/coredns/Corefile" + ], + "image": "602401143452.dkr.ecr.ap-northeast-2.amazonaws.com/eks/coredns:v1.9.3-eksbuild.2", + "imagePullPolicy": "IfNotPresent", + "livenessProbe": { + "failureThreshold": 5, + "httpGet": { + "path": "/health", + "port": 8080, + "scheme": "HTTP" + }, + "initialDelaySeconds": 60, + "periodSeconds": 10, + "successThreshold": 1, + "timeoutSeconds": 5 + }, + "name": "coredns", + "ports": [ + { + "containerPort": 53, + "name": "dns", + "protocol": "UDP" + }, + { + "containerPort": 53, + "name": "dns-tcp", + "protocol": "TCP" + }, + { + "containerPort": 9153, + "name": "metrics", + "protocol": "TCP" + } + ], + "readinessProbe": { + "failureThreshold": 3, + "httpGet": { + "path": "/health", + "port": 8080, + "scheme": "HTTP" + }, + "periodSeconds": 10, + "successThreshold": 1, + "timeoutSeconds": 1 + }, + "resources": { + "limits": { + "memory": "170Mi" + }, + "requests": { + "cpu": "100m", + "memory": "70Mi" + } + }, + "securityContext": { + "allowPrivilegeEscalation": false, + "capabilities": { + "add": [ + "NET_BIND_SERVICE" + ], + "drop": [ + "all" + ] + }, + "readOnlyRootFilesystem": true + }, + "terminationMessagePath": "/dev/termination-log", + "terminationMessagePolicy": "File", + "volumeMounts": [ + { + "mountPath": "/etc/coredns", + "name": "config-volume", + "readOnly": true + }, + { + "mountPath": "/tmp", + "name": "tmp" + } + ] + } + ], + "dnsPolicy": "Default", + "priorityClassName": "system-cluster-critical", + "restartPolicy": "Always", + "schedulerName": "default-scheduler", + "securityContext": {}, + "serviceAccount": "coredns", + "serviceAccountName": "coredns", + "terminationGracePeriodSeconds": 30, + "tolerations": [ + { + "effect": "NoSchedule", + "key": "node-role.kubernetes.io/master" + }, + { + "key": "CriticalAddonsOnly", + "operator": "Exists" + } + ], + "volumes": [ + { + "emptyDir": {}, + "name": "tmp" + }, + { + "configMap": { + "defaultMode": 420, + "items": [ + { + "key": "Corefile", + "path": "Corefile" + } + ], + "name": "coredns" + }, + "name": "config-volume" + } + ] + } + } + } + }, + { + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRole", + "metadata": { + "annotations": {}, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns", + "kubernetes.io/bootstrapping": "rbac-defaults" + }, + "name": "system:coredns" + }, + "rules": [ + { + "apiGroups": [ + "" + ], + "resources": [ + "endpoints", + "services", + "pods", + "namespaces" + ], + "verbs": [ + "list", + "watch" + ] + }, + { + "apiGroups": [ + "" + ], + "resources": [ + "nodes" + ], + "verbs": [ + "get" + ] + }, + { + "apiGroups": [ + "discovery.k8s.io" + ], + "resources": [ + "endpointslices" + ], + "verbs": [ + "list", + "watch" + ] + } + ] + }, + { + "apiVersion": "rbac.authorization.k8s.io/v1", + "kind": "ClusterRoleBinding", + "metadata": { + "annotations": { + "rbac.authorization.kubernetes.io/autoupdate": "true" + }, + "labels": { + "eks.amazonaws.com/component": "coredns", + "k8s-app": "kube-dns", + "kubernetes.io/bootstrapping": "rbac-defaults" + }, + "name": "system:coredns" + }, + "roleRef": { + "apiGroup": "rbac.authorization.k8s.io", + "kind": "ClusterRole", + "name": "system:coredns" + }, + "subjects": [ + { + "kind": "ServiceAccount", + "name": "coredns", + "namespace": "kube-system" + } + ] + } + ], + "kind": "List" +} diff --git a/pkg/addons/default/testdata/sample-1.20.json b/pkg/addons/default/testdata/sample-1.25.json similarity index 73% rename from pkg/addons/default/testdata/sample-1.20.json rename to pkg/addons/default/testdata/sample-1.25.json index 8a7c7fe752..396f6c1f5d 100644 --- a/pkg/addons/default/testdata/sample-1.20.json +++ b/pkg/addons/default/testdata/sample-1.25.json @@ -47,7 +47,8 @@ "key": "kubernetes.io/arch", "operator": "In", "values": [ - "amd64" + "amd64", + "arm64" ] }, { @@ -68,9 +69,21 @@ "command": [ "kube-proxy", "--v=2", - "--config=/var/lib/kube-proxy-config/config" + "--config=/var/lib/kube-proxy-config/config", + "--hostname-override=$(NODE_NAME)" ], - "image": "602401143452.dkr.ecr.eu-west-1.amazonaws.com/eks/kube-proxy:v1.20.1-eksbuild.1", + "env": [ + { + "name": "NODE_NAME", + "valueFrom": { + "fieldRef": { + "apiVersion": "v1", + "fieldPath": "spec.nodeName" + } + } + } + ], + "image": "602401143452.dkr.ecr.ap-northeast-2.amazonaws.com/eks/kube-proxy:v1.25.6-minimal-eksbuild.1", "imagePullPolicy": "IfNotPresent", "name": "kube-proxy", "resources": { @@ -163,6 +176,7 @@ }, "updateStrategy": { "rollingUpdate": { + "maxSurge": 0, "maxUnavailable": "10%" }, "type": "RollingUpdate" @@ -188,6 +202,14 @@ }, "spec": { "clusterIP": "10.100.0.10", + "clusterIPs": [ + "10.100.0.10" + ], + "internalTrafficPolicy": "Cluster", + "ipFamilies": [ + "IPv4" + ], + "ipFamilyPolicy": "SingleStack", "ports": [ { "name": "dns", @@ -225,7 +247,7 @@ { "apiVersion": "v1", "data": { - "Corefile": ".:53 {\n errors\n health\n kubernetes cluster.local in-addr.arpa ip6.arpa {\n pods insecure\n upstream\n fallthrough in-addr.arpa ip6.arpa\n }\n prometheus :9153\n forward . /etc/resolv.conf\n cache 30\n loop\n reload\n loadbalance\n}\n" + "Corefile": ".:53 {\n errors\n health\n kubernetes cluster.local in-addr.arpa ip6.arpa {\n pods insecure\n fallthrough in-addr.arpa ip6.arpa\n }\n prometheus :9153\n forward . /etc/resolv.conf\n cache 30\n loop\n reload\n loadbalance\n}\n" }, "kind": "ConfigMap", "metadata": { @@ -297,7 +319,8 @@ "key": "kubernetes.io/arch", "operator": "In", "values": [ - "amd64" + "amd64", + "arm64" ] } ] @@ -333,7 +356,7 @@ "-conf", "/etc/coredns/Corefile" ], - "image": "%s.dkr.ecr.%s.%s/eks/coredns:v1.6.6", + "image": "602401143452.dkr.ecr.ap-northeast-2.amazonaws.com/eks/coredns:v1.9.3-eksbuild.2", "imagePullPolicy": "IfNotPresent", "livenessProbe": { "failureThreshold": 5, @@ -491,6 +514,18 @@ "verbs": [ "get" ] + }, + { + "apiGroups": [ + "discovery.k8s.io" + ], + "resources": [ + "endpointslices" + ], + "verbs": [ + "list", + "watch" + ] } ] }, @@ -529,6 +564,9 @@ "deprecated.daemonset.template.generation": "1" }, "labels": { + "app.kubernetes.io/instance": "aws-vpc-cni", + "app.kubernetes.io/name": "aws-node", + "app.kubernetes.io/version": "v1.12.2", "k8s-app": "aws-node" }, "name": "aws-node", @@ -545,6 +583,8 @@ "metadata": { "creationTimestamp": null, "labels": { + "app.kubernetes.io/instance": "aws-vpc-cni", + "app.kubernetes.io/name": "aws-node", "k8s-app": "aws-node" } }, @@ -566,7 +606,8 @@ "key": "kubernetes.io/arch", "operator": "In", "values": [ - "amd64" + "amd64", + "arm64" ] }, { @@ -585,17 +626,85 @@ "containers": [ { "env": [ + { + "name": "ADDITIONAL_ENI_TAGS", + "value": "{}" + }, + { + "name": "AWS_VPC_CNI_NODE_PORT_SUPPORT", + "value": "true" + }, + { + "name": "AWS_VPC_ENI_MTU", + "value": "9001" + }, + { + "name": "AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG", + "value": "false" + }, + { + "name": "AWS_VPC_K8S_CNI_EXTERNALSNAT", + "value": "false" + }, { "name": "AWS_VPC_K8S_CNI_LOGLEVEL", "value": "DEBUG" }, + { + "name": "AWS_VPC_K8S_CNI_LOG_FILE", + "value": "/host/var/log/aws-routed-eni/ipamd.log" + }, + { + "name": "AWS_VPC_K8S_CNI_RANDOMIZESNAT", + "value": "prng" + }, { "name": "AWS_VPC_K8S_CNI_VETHPREFIX", "value": "eni" }, { - "name": "AWS_VPC_ENI_MTU", - "value": "9001" + "name": "AWS_VPC_K8S_PLUGIN_LOG_FILE", + "value": "/var/log/aws-routed-eni/plugin.log" + }, + { + "name": "AWS_VPC_K8S_PLUGIN_LOG_LEVEL", + "value": "DEBUG" + }, + { + "name": "DISABLE_INTROSPECTION", + "value": "false" + }, + { + "name": "DISABLE_METRICS", + "value": "false" + }, + { + "name": "DISABLE_NETWORK_RESOURCE_PROVISIONING", + "value": "false" + }, + { + "name": "ENABLE_IPv4", + "value": "true" + }, + { + "name": "ENABLE_IPv6", + "value": "false" + }, + { + "name": "ENABLE_POD_ENI", + "value": "false" + }, + { + "name": "ENABLE_PREFIX_DELEGATION", + "value": "false" + }, + { + "name": "WARM_ENI_TARGET", + "value": "1" + }, + { + "name": "WARM_PREFIX_TARGET", + "value": "1" }, { "name": "MY_NODE_NAME", @@ -607,20 +716,22 @@ } } ], - "image": "602401143452.dkr.ecr.us-west-2.amazonaws.com/amazon-k8s-cni:v1.7.6", - "imagePullPolicy": "Always", + "image": "602401143452.dkr.ecr.ap-northeast-2.amazonaws.com/amazon-k8s-cni:v1.12.2-eksbuild.1", + "imagePullPolicy": "IfNotPresent", "livenessProbe": { "exec": { "command": [ "/app/grpc-health-probe", - "-addr=:50051" + "-addr=:50051", + "-connect-timeout=5s", + "-rpc-timeout=5s" ] }, "failureThreshold": 3, - "initialDelaySeconds": 35, + "initialDelaySeconds": 60, "periodSeconds": 10, "successThreshold": 1, - "timeoutSeconds": 1 + "timeoutSeconds": 10 }, "name": "aws-node", "ports": [ @@ -635,22 +746,29 @@ "exec": { "command": [ "/app/grpc-health-probe", - "-addr=:50051" + "-addr=:50051", + "-connect-timeout=5s", + "-rpc-timeout=5s" ] }, "failureThreshold": 3, - "initialDelaySeconds": 35, + "initialDelaySeconds": 1, "periodSeconds": 10, "successThreshold": 1, - "timeoutSeconds": 1 + "timeoutSeconds": 10 }, "resources": { "requests": { - "cpu": "10m" + "cpu": "25m" } }, "securityContext": { - "privileged": true + "capabilities": { + "add": [ + "NET_ADMIN", + "NET_RAW" + ] + } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", @@ -664,29 +782,58 @@ "name": "cni-net-dir" }, { - "mountPath": "/host/var/log", + "mountPath": "/host/var/log/aws-routed-eni", "name": "log-dir" }, { - "mountPath": "/var/run/docker.sock", - "name": "dockersock" + "mountPath": "/var/run/aws-node", + "name": "run-dir" }, { - "mountPath": "/var/run/dockershim.sock", - "name": "dockershim" + "mountPath": "/run/xtables.lock", + "name": "xtables-lock" } ] } ], "dnsPolicy": "ClusterFirst", "hostNetwork": true, + "initContainers": [ + { + "env": [ + { + "name": "DISABLE_TCP_EARLY_DEMUX", + "value": "false" + }, + { + "name": "ENABLE_IPv6", + "value": "false" + } + ], + "image": "602401143452.dkr.ecr.ap-northeast-2.amazonaws.com/amazon-k8s-cni-init:v1.12.2-eksbuild.1", + "imagePullPolicy": "IfNotPresent", + "name": "aws-vpc-cni-init", + "resources": {}, + "securityContext": { + "privileged": true + }, + "terminationMessagePath": "/dev/termination-log", + "terminationMessagePolicy": "File", + "volumeMounts": [ + { + "mountPath": "/host/opt/cni/bin", + "name": "cni-bin-dir" + } + ] + } + ], "priorityClassName": "system-node-critical", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "serviceAccount": "aws-node", "serviceAccountName": "aws-node", - "terminationGracePeriodSeconds": 30, + "terminationGracePeriodSeconds": 10, "tolerations": [ { "operator": "Exists" @@ -709,30 +856,31 @@ }, { "hostPath": { - "path": "/var/log", - "type": "" + "path": "/var/log/aws-routed-eni", + "type": "DirectoryOrCreate" }, "name": "log-dir" }, { "hostPath": { - "path": "/var/run/docker.sock", - "type": "" + "path": "/var/run/aws-node", + "type": "DirectoryOrCreate" }, - "name": "dockersock" + "name": "run-dir" }, { "hostPath": { - "path": "/var/run/dockershim.sock", + "path": "/run/xtables.lock", "type": "" }, - "name": "dockershim" + "name": "xtables-lock" } ] } }, "updateStrategy": { "rollingUpdate": { + "maxSurge": 0, "maxUnavailable": "10%" }, "type": "RollingUpdate" @@ -744,6 +892,12 @@ "kind": "CustomResourceDefinition", "metadata": { "annotations": {}, + "labels": { + "app.kubernetes.io/instance": "aws-vpc-cni", + "app.kubernetes.io/name": "aws-node", + "app.kubernetes.io/version": "v1.12.2", + "k8s-app": "aws-node" + }, "name": "eniconfigs.crd.k8s.amazonaws.com" }, "spec": { @@ -757,11 +911,16 @@ "plural": "eniconfigs", "singular": "eniconfig" }, - "preserveUnknownFields": true, "scope": "Cluster", "versions": [ { "name": "v1alpha1", + "schema": { + "openAPIV3Schema": { + "type": "object", + "x-kubernetes-preserve-unknown-fields": true + } + }, "served": true, "storage": true } @@ -773,6 +932,12 @@ "kind": "ClusterRole", "metadata": { "annotations": {}, + "labels": { + "app.kubernetes.io/instance": "aws-vpc-cni", + "app.kubernetes.io/name": "aws-node", + "app.kubernetes.io/version": "v1.12.2", + "k8s-app": "aws-node" + }, "name": "aws-node" }, "rules": [ @@ -781,10 +946,12 @@ "crd.k8s.amazonaws.com" ], "resources": [ - "*" + "eniconfigs" ], "verbs": [ - "*" + "list", + "watch", + "get" ] }, { @@ -792,8 +959,6 @@ "" ], "resources": [ - "pods", - "nodes", "namespaces" ], "verbs": [ @@ -802,17 +967,58 @@ "get" ] }, + { + "apiGroups": [ + "" + ], + "resources": [ + "pods" + ], + "verbs": [ + "list", + "watch", + "get" + ] + }, + { + "apiGroups": [ + "" + ], + "resources": [ + "nodes" + ], + "verbs": [ + "list", + "watch", + "get", + "update" + ] + }, { "apiGroups": [ "extensions" ], "resources": [ - "daemonsets" + "*" ], "verbs": [ "list", "watch" ] + }, + { + "apiGroups": [ + "", + "events.k8s.io" + ], + "resources": [ + "events" + ], + "verbs": [ + "create", + "patch", + "list" + ] } ] }, @@ -821,6 +1027,12 @@ "kind": "ClusterRoleBinding", "metadata": { "annotations": {}, + "labels": { + "app.kubernetes.io/instance": "aws-vpc-cni", + "app.kubernetes.io/name": "aws-node", + "app.kubernetes.io/version": "v1.12.2", + "k8s-app": "aws-node" + }, "name": "aws-node" }, "roleRef": { diff --git a/pkg/apis/eksctl.io/v1alpha5/assets/schema.json b/pkg/apis/eksctl.io/v1alpha5/assets/schema.json index 53b316ff7b..f3fc184c8b 100755 --- a/pkg/apis/eksctl.io/v1alpha5/assets/schema.json +++ b/pkg/apis/eksctl.io/v1alpha5/assets/schema.json @@ -578,13 +578,14 @@ }, "version": { "type": "string", - "description": "Valid variants are: `\"1.22\"`, `\"1.23\"`, `\"1.24\"` (default).", - "x-intellij-html-description": "Valid variants are: "1.22", "1.23", "1.24" (default).", + "description": "Valid variants are: `\"1.22\"`, `\"1.23\"`, `\"1.24\"` (default), `\"1.25\"`.", + "x-intellij-html-description": "Valid variants are: "1.22", "1.23", "1.24" (default), "1.25".", "default": "1.24", "enum": [ "1.22", "1.23", - "1.24" + "1.24", + "1.25" ] } }, diff --git a/pkg/apis/eksctl.io/v1alpha5/types.go b/pkg/apis/eksctl.io/v1alpha5/types.go index bc9e84926d..5c2f7090d0 100644 --- a/pkg/apis/eksctl.io/v1alpha5/types.go +++ b/pkg/apis/eksctl.io/v1alpha5/types.go @@ -37,10 +37,12 @@ const ( Version1_24 = "1.24" + Version1_25 = "1.25" + // DefaultVersion (default) DefaultVersion = Version1_24 - LatestVersion = Version1_24 + LatestVersion = Version1_25 DockershimDeprecationVersion = Version1_24 ) @@ -86,8 +88,8 @@ const ( // Not yet supported versions const ( - // Version1_25 represents Kubernetes version 1.25.x - Version1_25 = "1.25" + // Version1_26 represents Kubernetes version 1.26.x + Version1_26 = "1.26" ) const ( @@ -537,6 +539,7 @@ func SupportedVersions() []string { Version1_22, Version1_23, Version1_24, + Version1_25, } } diff --git a/userdocs/src/introduction.md b/userdocs/src/introduction.md index 7427383660..c250e7867a 100644 --- a/userdocs/src/introduction.md +++ b/userdocs/src/introduction.md @@ -10,7 +10,7 @@ eksctl create cluster --name=cluster-1 --nodes=4 ``` -EKS supports versions `1.22`, `1.23` and `1.24` (default). +EKS supports versions `1.22`, `1.23`, `1.24` (default) and `1.25`. With `eksctl` you can deploy any of the supported versions by passing `--version`. ```