Skip to content

Commit e9f4f38

Browse files
committed
Drop k8s 1.28 and 1.29 metal variants
Signed-off-by: Matthew Yeazel <[email protected]>
1 parent 566ee77 commit e9f4f38

File tree

8 files changed

+17
-185
lines changed

8 files changed

+17
-185
lines changed

Cargo.lock

-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ members = [
3131
"variants/aws-k8s-1.30-nvidia",
3232
"variants/aws-k8s-1.31-nvidia",
3333
"variants/metal-dev",
34-
"variants/metal-k8s-1.28",
35-
"variants/metal-k8s-1.29",
3634
"variants/vmware-dev",
3735
"variants/vmware-k8s-1.28",
3836
"variants/vmware-k8s-1.28-fips",

PROVISIONING-METAL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ You might need to install `jq` to fetch the VERSION.
3939

4040
```shell
4141
ARCH="x86_64"
42-
VERSION=$(curl -s https://api.github.com/repos/bottlerocket-os/bottlerocket/releases/latest | jq -r '.name')
42+
VERSION="v1.26.1" # New releases do not have metal-k8s variants
4343
VARIANT="metal-k8s-1.28"
4444
IMAGE="bottlerocket-${VARIANT}-${ARCH}-${VERSION}.img.lz4"
4545
OUTDIR="${VARIANT}-${VERSION}"

README.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -92,15 +92,11 @@ We also have variants that are designed to be Kubernetes worker nodes in VMware:
9292
* `vmware-k8s-1.30`
9393
* `vmware-k8s-1.31`
9494

95-
The following variants are designed to be Kubernetes worker nodes on bare metal:
96-
97-
* `metal-k8s-1.28`
98-
* `metal-k8s-1.29`
99-
10095
The following variants are no longer supported:
10196

10297
* All Kubernetes variants using Kubernetes 1.23 and earlier
103-
* Bare metal and VMware variants using Kubernetes 1.27 and earlier
98+
* VMware variants using Kubernetes 1.27 and earlier
99+
* Bare metal variants for Kubernetes
104100

105101
We recommend users replace nodes running these variants with the [latest variant compatible with their cluster](variants/).
106102

TESTING.md

-53
Original file line numberDiff line numberDiff line change
@@ -334,59 +334,6 @@ You can monitor the tests with:
334334
cargo make watch-test
335335
```
336336

337-
### metal-k8s
338-
339-
First, an initial baremetal management cluster needs to be created using [`EKS Anywhere`](https://anywhere.eks.amazonaws.com/docs/getting-started/production-environment/baremetal-getstarted/#create-an-initial-cluster).
340-
You can then set `TESTSYS_MGMT_CLUSTER_KUBECONFIG` to the path to the management clusters kubeconfig.
341-
You need to [build](BUILDING.md) Bottlerocket and a publicly accessible [TUF repository](https://github.com/bottlerocket-os/bottlerocket/blob/develop/PUBLISHING.md#repo-location) to test metal variants.
342-
In addition to the management cluster, you will need to [prepare a hardware CSV file](https://anywhere.eks.amazonaws.com/docs/reference/baremetal/bare-preparation/#prepare-hardware-inventory) containing all machines you want to provision and a [cluster config](https://anywhere.eks.amazonaws.com/docs/reference/clusterspec/baremetal/) for the cluster.
343-
Create a directory in `tests/shared/clusters` with an identifier for this cluster, i.e cluster1 (`tests/shared/clusters/cluster1`).
344-
In that directory create 2 files, `cluster.yaml` with the EKS Anywhere cluster config, and `hardware.csv`.
345-
In `Test.toml` set `cluster-names = ["cluster1"]` to tell TestSys that we want the cluster config and hardware csv from the directory we just created.
346-
347-
Metal testing also requires and additional manual step for testing.
348-
The Bottlerocket build system compresses the metal images with lz4, but EKS Anywhere requires them to be gzipped, so before testing make sure to uncompress the lz4 image and gzip it.
349-
Make sure it is downloadable from a URL accessible from the management cluster.
350-
The directory used should be added to `Test.toml` as `os-image-dir`.
351-
352-
Change the commands below to the desired `metal-k8s` variant:
353-
354-
First, build the Metal variant you want to test.
355-
356-
```shell
357-
cargo make \
358-
-e BUILDSYS_VARIANT="metal-k8s-1.29" \
359-
-e BUILDSYS_ARCH="x86_64" \
360-
build
361-
```
362-
363-
Build the TUF repo containing the metal images.
364-
365-
```shell
366-
cargo make \
367-
-e BUILDSYS_VARIANT="metal-k8s-1.29" \
368-
-e BUILDSYS_ARCH="x86_64" \
369-
repo
370-
```
371-
372-
Make sure you gzip the metal image and add it to your `os-image-dir`.
373-
374-
Now, you can run the test.
375-
376-
```shell
377-
cargo make \
378-
-e BUILDSYS_VARIANT="metal-k8s-1.29" \
379-
-e BUILDSYS_ARCH="x86_64" \
380-
-e TESTSYS_MGMT_CLUSTER_KUBECONFIG=${TESTSYS_MGMT_CLUSTER_KUBECONFIG}
381-
test
382-
```
383-
384-
You can monitor the tests with:
385-
386-
```shell
387-
cargo make watch-test
388-
```
389-
390337
## Migration Testing
391338

392339
Migration testing is used to ensure Bottlerocket can update from one version to a new version and back.

variants/README.md

+14-13
Original file line numberDiff line numberDiff line change
@@ -221,19 +221,6 @@ This variant is compatible with Kubernetes 1.31, 1.32, 1.33, and 1.34 clusters.
221221
The [metal-dev](metal-dev/Cargo.toml) variant has useful packages for local development of the OS and is intended to run bare metal.
222222
It includes tools for troubleshooting as well as Docker for running containers.
223223

224-
### metal-k8s-1.28: Metal Kubernetes 1.28 node
225-
226-
The [metal-k8s-1.28](metal-k8s-1.28/Cargo.toml) variant includes the packages needed to run a Kubernetes node on bare metal.
227-
It supports self-hosted clusters.
228-
229-
This variant is compatible with Kubernetes 1.28, 1.29, 1.30, and 1.31 clusters.
230-
231-
### metal-k8s-1.29: Metal Kubernetes 1.28 node
232-
233-
The [metal-k8s-1.29](metal-k8s-1.29/Cargo.toml) variant includes the packages needed to run a Kubernetes node on bare metal.
234-
It supports self-hosted clusters.
235-
236-
This variant is compatible with Kubernetes 1.29, 1.30, 1.31, and 1.32 clusters.
237224

238225
### Deprecated variants
239226

@@ -446,6 +433,20 @@ It supported self-hosted clusters.
446433

447434
This variant was compatible with Kubernetes 1.27, 1.28, 1.29, and 1.30 clusters.
448435

436+
### metal-k8s-1.28: Metal Kubernetes 1.28 node
437+
438+
The [metal-k8s-1.28](metal-k8s-1.28/Cargo.toml) variant included the packages needed to run a Kubernetes node on bare metal.
439+
It supports self-hosted clusters.
440+
441+
This variant was compatible with Kubernetes 1.28, 1.29, 1.30, and 1.31 clusters.
442+
443+
### metal-k8s-1.29: Metal Kubernetes 1.29 node
444+
445+
The [metal-k8s-1.29](metal-k8s-1.29/Cargo.toml) variant included the packages needed to run a Kubernetes node on bare metal.
446+
It supports self-hosted clusters.
447+
448+
This variant was compatible with Kubernetes 1.29, 1.30, 1.31, and 1.32 clusters.
449+
449450
## Development
450451

451452
Say we want to create `my-variant`, a custom build of Bottlerocket that runs `my-agent`.

variants/metal-k8s-1.28/Cargo.toml

-46
This file was deleted.

variants/metal-k8s-1.29/Cargo.toml

-46
This file was deleted.

0 commit comments

Comments
 (0)