Skip to content

Commit

Permalink
docs: Use a variable for the node group name TDE-1255 (#782)
Browse files Browse the repository at this point in the history
#### Motivation

This way it's easier to run the process without any typos.

#### Modification

Use a variable rather than static values for the node group name.

#### Checklist

- [ ] Tests updated (N/A)
- [x] Docs updated
- [x] Issue linked in Title
  • Loading branch information
l0b0 authored Sep 30, 2024
1 parent 956e893 commit e34d93d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/infrastructure/kubernetes.version.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,24 @@ This process is necessary to avoid being blocked for a future Kubernetes version
1. Find the nodegroup name for the cluster
```bash
aws eks list-nodegroups --cluster-name Workflows
node_group_name="$(aws eks list-nodegroups --cluster-name=Workflows | jq --raw-output '.nodegroups[]')"
```
2. Describe the nodegroup to validate the versions
By describing the node group you can check the current version, or you can use `k get nodes` to see what version is currently running
```bash
aws eks describe-nodegroup --cluster-name Workflows --nodegroup-name EksWorkflowsNodegroupCluste
aws eks describe-nodegroup --cluster-name=Workflows --nodegroup-name="$node_group_name" | jq --raw-output .nodegroup.version
```
3. Update the version to match
```bash
aws eks update-nodegroup-version --cluster-name Workflows --nodegroup-name EksWorkflowsNodegroupCluste-OWsXxRuVz2B7
aws eks update-nodegroup-version --cluster-name=Workflows --nodegroup-name="$node_group_name"
```
This step takes some time to run. You can wait for it to finish with this command:
```bash
aws eks wait nodegroup-active --cluster-name=Workflows --nodegroup-name=EksWorkflowsNodegroupCluste-OWsXxRuVz2B7
aws eks wait nodegroup-active --cluster-name=Workflows --nodegroup-name="$node_group_name"
```

0 comments on commit e34d93d

Please sign in to comment.