Skip to content

Commit

Permalink
sources, variants: add metal-k8s-1.28 variant
Browse files Browse the repository at this point in the history
  • Loading branch information
etungsten committed Aug 22, 2023
1 parent 4618eaa commit e4b4187
Show file tree
Hide file tree
Showing 28 changed files with 104 additions and 20 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ The following variants are designed to be Kubernetes worker nodes on bare metal:
* `metal-k8s-1.25`
* `metal-k8s-1.26`
* `metal-k8s-1.27`
* `metal-k8s-1.28`

The following variants are no longer supported:

Expand Down
1 change: 1 addition & 0 deletions sources/logdog/conf/logdog.metal-k8s-1.28.conf
25 changes: 15 additions & 10 deletions sources/models/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,28 +149,33 @@ The `#[model]` attribute on Settings and its sub-structs reduces duplication and

### metal-k8s-1.23: Metal Kubernetes 1.23

* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

### metal-k8s-1.24: Metal Kubernetes 1.24

* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

### metal-k8s-1.25: Metal Kubernetes 1.25

* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

### metal-k8s-1.26: Metal Kubernetes 1.26

* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

### metal-k8s-1.27: Metal Kubernetes 1.27

* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

### metal-k8s-1.28: Metal Kubernetes 1.28

* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)

## This directory

Expand Down
25 changes: 15 additions & 10 deletions sources/models/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,28 +146,33 @@ The `#[model]` attribute on Settings and its sub-structs reduces duplication and
## metal-k8s-1.23: Metal Kubernetes 1.23
* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
## metal-k8s-1.24: Metal Kubernetes 1.24
* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
## metal-k8s-1.25: Metal Kubernetes 1.25
* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
## metal-k8s-1.26: Metal Kubernetes 1.26
* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
## metal-k8s-1.27: Metal Kubernetes 1.27
* [Model](src/metal-k8s-1.27/mod.rs)
* [Default settings](src/metal-k8s-1.27/defaults.d/)
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
## metal-k8s-1.28: Metal Kubernetes 1.28
* [Model](src/metal-k8s-1.28/mod.rs)
* [Default settings](src/metal-k8s-1.28/defaults.d/)
# This directory
Expand Down
1 change: 1 addition & 0 deletions sources/models/src/metal-k8s-1.27
File renamed without changes.
12 changes: 12 additions & 0 deletions variants/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions variants/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ members = [
"metal-k8s-1.25",
"metal-k8s-1.26",
"metal-k8s-1.27",
"metal-k8s-1.28",
"vmware-dev",
"vmware-k8s-1.23",
"vmware-k8s-1.24",
Expand Down
7 changes: 7 additions & 0 deletions variants/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,13 @@ It supports self-hosted clusters.

This variant is compatible with Kubernetes 1.27, 1.28, and 1.29 clusters.

### metal-k8s-1.28: Metal Kubernetes 1.28 node

The [metal-k8s-1.28](metal-k8s-1.28/Cargo.toml) variant includes the packages needed to run a Kubernetes node on bare metal.
It supports self-hosted clusters.

This variant is compatible with Kubernetes 1.28, 1.29, and 1.30 clusters.

### Deprecated variants

#### aws-k8s-1.15: Kubernetes 1.15 node
Expand Down
51 changes: 51 additions & 0 deletions variants/metal-k8s-1.28/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[package]
# This is the metal-k8s-1.28 variant. "." is not allowed in crate names, but
# we don't use this crate name anywhere.
name = "metal-k8s-1_28"
version = "0.1.0"
edition = "2021"
publish = false
build = "../build.rs"
# Don't rebuild crate just because of changes to README.
exclude = ["README.md"]

[package.metadata.build-variant.image-layout]
os-image-size-gib = 4
partition-plan = "unified"

[package.metadata.build-variant.image-features]
grub-set-private-var = true
unified-cgroup-hierarchy = true
uefi-secure-boot = true
xfs-data-partition = true

[package.metadata.build-variant]
image-format = "raw"
supported-arches = ["x86_64"]
kernel-parameters = [
# Only reserve if there are at least 2GB
"crashkernel=2G-:256M"
]
included-packages = [
# core
"release",
"kernel-6.1",
# k8s
"aws-iam-authenticator",
"cni",
"cni-plugins",
"kubelet-1.28",
]

[lib]
path = "../variants.rs"

[build-dependencies]
# core
release = { path = "../../packages/release" }
kernel-6_1 = { path = "../../packages/kernel-6.1" }
# k8s
aws-iam-authenticator = { path = "../../packages/aws-iam-authenticator" }
cni = { path = "../../packages/cni" }
cni-plugins = { path = "../../packages/cni-plugins" }
kubernetes-1_28 = { path = "../../packages/kubernetes-1.28" }

0 comments on commit e4b4187

Please sign in to comment.