From 76f79c1351d5cbbb5493e858f167148c87514dec Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Mon, 30 Sep 2024 12:24:03 +1300 Subject: [PATCH 1/2] docs: Use a variable for the node group name This way it's easier to run the process without any typos. --- 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..97207b2c 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" ``` 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" ``` From 527570c29b6fec814e3d3ac3fb96b9857918efa7 Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Mon, 30 Sep 2024 12:29:02 +1300 Subject: [PATCH 2/2] docs: Print only the node group version --- docs/infrastructure/kubernetes.version.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/infrastructure/kubernetes.version.md b/docs/infrastructure/kubernetes.version.md index 97207b2c..a76a3a99 100644 --- a/docs/infrastructure/kubernetes.version.md +++ b/docs/infrastructure/kubernetes.version.md @@ -107,7 +107,7 @@ This process is necessary to avoid being blocked for a future Kubernetes version 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="$node_group_name" + aws eks describe-nodegroup --cluster-name=Workflows --nodegroup-name="$node_group_name" | jq --raw-output .nodegroup.version ``` 3. Update the version to match