-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
kind/bugIssues that are defects reported by users or that we know have reached a real releaseIssues that are defects reported by users or that we know have reached a real releaserelease-noteNote this issue in the milestone's release notesNote this issue in the milestone's release notesstatus/release-note-addedteam/highlander
Description
Rancher Server Setup
- Rancher version:
v2.7.0-rc6
- Installation option (Docker install/Helm Chart):
Docker
- Proxy/Cert Details:
self-signed
Information about the Cluster
- Kubernetes version:
v1.21.14-eks-6d3986b
- Cluster Type (Local/Downstream):
Downstream EKS cluster
User Information
- What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
Standard User/Cluster Owner
Describe the bug
Unable to upgrade EKS clusters, w/ k8s 1.21
or below, on rancher 2.7
To Reproduce
- Fresh install of rancher
v2.6.9
- As admin, create a standard user
- As standard user, provision a downstream EKS cluster w/ k8s
1.21
- Once
Active
, upgrade rancher tov2.7.0-rc6
- Once upgrade is successful,
Edit Config
of EKS cluster and upgrade to k8s1.23
- Reproduced
Result
Unable to upgrade rancher:
Because Amazon EKS runs a highly available control plane, you can update only one minor version at a time.
1.23
disabled w/ following message:minor version > 1 not allowed by EKS
Expected Result
Cluster should be able to upgrade to 1.23
Additional Context
Upon further testing, the following workaround was successful on 2.7.0-rc6
w/ EKS k8s 1.21
:
- Send API PUT request to
<host_url>/v3/clusters/<cluster_id>
- Request Body:
{
"name": <REDACTED>,
"eksConfig": {
"kubernetesVersion": "1.22",
"nodeGroups": [
{
"desiredSize": 2,
"diskSize": 20,
"ec2SshKey": "",
"gpu": false,
"imageId": "",
"instanceType": "t3.xlarge",
"labels": {},
"launchTemplate": null,
"maxSize": 2,
"minSize": 2,
"nodegroupName": <REDACTED>,
"requestSpotInstances": false,
"resourceTags": {},
"spotInstanceTypes": [],
"subnets": [
<REDACTED>,
<REDACTED>,
<REDACTED>
],
"tags": {},
"type": "/v3/schemas/nodeGroup",
"userData": "",
"version": "1.22"
}
]
}
}
- Result:
- Status code 200
- Cluster + nodes successfully upgrade to 1.22
- Once upgraded to k8s 1.22,
Edit Config
of cluster and upgrade to 1.23 via Rancher UI - Cluster successfully upgrades to 1.23
Additional Workaround - [to be release-noted]
- From AWS Console, upgrade EKS cluster from 1.21 => 1.22
- Once upgraded + sync'd w/ Rancher, From Rancher UI,
Edit Config
and upgrade nodes to 1.22 - Once nodes are upgraded to 1.22 and
Active
, From Rancher UI,Edit Config
and upgrade cluster to 1.23 - Once cluster is upgraded +
Active
, From Rancher UI,Edit Config
and upgrade nodes to 1.23 - Verified - EKS cluster + nodes successfully upgraded to 1.23 on rancher
v2.7.0-rc6
Metadata
Metadata
Assignees
Labels
kind/bugIssues that are defects reported by users or that we know have reached a real releaseIssues that are defects reported by users or that we know have reached a real releaserelease-noteNote this issue in the milestone's release notesNote this issue in the milestone's release notesstatus/release-note-addedteam/highlander