-
Notifications
You must be signed in to change notification settings - Fork 0
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
Introduce hardened Flatcar Images for CAPZ #1659
Comments
something to keep an eye on kubernetes-sigs/cluster-api-provider-azure#2890 is adding a template for using flatcar on capz |
Flatcar now officially in the docs: https://capz.sigs.k8s.io/topics/flatcar.html |
I am getting a 404 here now 🤷 :) for reference the file still exists here https://github.com/kinvolk/cluster-api-provider-azure/blob/8dad8f074688f1790b08a185ed0a33a6bcf3fd4b/docs/book/src/topics/flatcar.md |
Ah yeah sorry, that was because of the recent change to point the documentation no longer to the newest release branch, but the main branch of the capz book. |
First test at least nodes joined 👍
|
Machine Review
|
License for flatcar is
|
Cilium looks ok but 4 tests are failing from the TLDR: I think the issue is with the test itself
But i tried with latest version of
DNS issues ?
Running the command myself from the pod works just fine
Same failures on a ubuntu capz cluster so this is not related to the flatcar change
I will create a follow up issue to investigate this |
Control Plane nodes review
|
To build images from the
by running
|
TODOGallery ToDos
Images and Pipelines ToDos
|
After lots of trial and error i think i got the right spec to use our images
BUT , since azure keeps a link between our build images and the parent flatcar one we are getting this error
I will accept the terms in I can't explain how we are using the From Upstream
sample script used by upstream to build image - https://gist.github.com/primeroz/702e6bec5fcee2986adbefeb633bffb4 |
The fact that
|
We can use the following information for the legal statement in the Azure Image Gallery:
|
since last upgrade i noticed something strange
the name is
UPDATE: Everything is ok , the printing of the I checked the whole provisioning and is working as expected , all the flatcar bits are properly run |
Review of Hardening and other tuningprotect-kernel-defaults
Outcome: Enable ARP Settings
there is no history or reference i could find on why we are setting those values, i will try to reach to Outcome: TBD local ports reserved
Not sure what this Outcome: TBD maxmap
Self Explanatory Outcome: Add to worker node pools ipv6
since we do not disable ipv6 ( capi sets Outcome: add unless we want to disable ipv6 ? ipv4
they are all reasonable Outcome: add inotify
reasonable Outcome: add kernel settings
They both seem reasoable to me Outcome: add |
comparing containerd config.toml
|
Reservationsin vintage we do on master nodes
on worker nodes
on CAPZ we
I wlil
|
Upgrading from
|
Chaing the during rollout it gets stuck with
I will reach out upstrema to see what they think since most fields can be modified and i can't see why those 2 cannot ( https://github.com/kubernetes-sigs/cluster-api/blob/main/controlplane/kubeadm/api/v1beta1/kubeadm_control_plane_webhook.go#L137 ) but right now we cna't update the CP from ubuntu to flatcar |
glippy is now converted to flatcar
|
this is now done |
Motivation
Currently we use Ubuntu images for our cluster nodes. But those are not specially hardened and thus not really secure. We have a more secure alternative with the hardened flatcar images. We therefor need to replace the ubuntu images with flatcar ones.
Todo
kubeadm.service
andkubeadm.sh
generated filescustomization
to base flatcar does upstream applyLicencing issues
we saw with Ubuntu to handle ?Hardened
vintage os-hardening.service
- https://github.com/giantswarm/k8scloudconfig/blob/master/pkg/template/master_template.go#L69 https://github.com/giantswarm/k8scloudconfig/blob/master/files/conf/hardening.confUpdate schedule
for flatcar images should be ( i am quite sure on ubuntu we are getting auto security updates at the moment )serial console
we get automatically logged infctest1-control-plane-e95df458-786z4 login: core (automatic login)
etcd3-defrag service
- https://github.com/giantswarm/k8scloudconfig/blob/master/pkg/template/master_template.go#L250bigger reservations for kube-reserved and system-reserved
anddedicated slices
( but no enforcement )Open Upstream Issues
ubuntu
toflatcar
due to some immutable fields inkubeadmcontrolplane
spec kubernetes-sigs/cluster-api#8242Outcome
Technical Hint
The text was updated successfully, but these errors were encountered: