-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
variants: Add metal-k8s-1.21 variant #1904
Conversation
[package.metadata.build-variant] | ||
image-format = "raw" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's also expand the OS image size to 4 GiB (two banks of 2 GiB) - since I expect to need some extra space for firmware, etc.
sources/logdog/conf/metal-k8s.conf
Outdated
@@ -0,0 +1 @@ | |||
exec kube-status systemctl status kube* -l --no-pager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this different from the other k8s variants? (edit: the underlying question is I was wondering if there's a shared file or if we should make one)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The aws
file differs, but we could probably unify the vmware
and metal
files since they're the same, and both are "off-AWS" variants.
This change adds an additional variant `metal-k8s-1.21`, which includes necessary Kubernetes packages and settings for running Bottlerocket on metal in a Kubernetes cluster.
VMware and metal variants both use host containers pulled from public ECR. This change creates a single file that both variants can use.
VMware and metal variants use the same logdog config, so this change renames the config to `k8s.conf` and fixes up the symlinks accordingly.
8e1de16
to
f1ea496
Compare
^ Added 2 additional commits: the first unifies the public host containers into one file in models, the second unifies the "off-AWS" config into a single file in logdog. |
Description of changes:
Following along the series of changes in the
metal-dev
PR (#1895), this PR adds a variant meant for running Bottlerocket as a worker node in Kubernetes clusters on bare metal. It is similar in scope to the other Kubernetes variants, and includes sane defaults for running off AWS.Testing done:
Similar to #1895 , all testing was performed on 2 Supermicro SYS-E200-8D machines. Testing was performed using the following configurations:
Tests:
Ran kubelet in standalone mode and confirmed it was able to run a redis pod via static pods. (I don't currently have a Kubernetes cluster at home to join)
All host containers worked swimmingly given the correct user data
Bootstrap containers are happy
Inspected journal logs, nothing alarming there (though kubelet would really like a CNI plugin :) )
Successfully built and ran the vmware-k8s-1.21 variant to ensure I didn't break anything there. :)
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.
T license.