From e34d93d84085344a3940fc01a96f622cdaa95797 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Tue, 1 Oct 2024 08:50:03 +1300 Subject: [PATCH] docs: Use a variable for the node group name TDE-1255 (#782) #### 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 --- docs/infrastructure/kubernetes.version.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/infrastructure/kubernetes.version.md b/docs/infrastructure/kubernetes.version.md index 3bd1c3d0..a76a3a99 100644 --- a/docs/infrastructure/kubernetes.version.md +++ b/docs/infrastructure/kubernetes.version.md @@ -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" ```