-
-
Notifications
You must be signed in to change notification settings - Fork 322
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
Add support for Container Linux Config snippets #145
Conversation
* Upcoming releases may begin to use features that require the `terraform-provider-ct` plugin v0.2.1 * New users should use `terraform-provider-ct` v0.2.1. Existing users can safely drop-in replace their v0.2.0 plugin with v0.2.1 as well (location referenced in ~/.terraformrc). * See #145
* Introduce the ability to support Container Linux Config "snippets" for controllers and workers on cloud platforms. This allows end-users to customize hosts by providing Container Linux configs that are additively merged into the base configs defined by Typhoon. Config snippets are validated, merged, and show any errors during `terraform plan` * Example uses include adding systemd units, network configs, mounts, files, raid arrays, or other disk provisioning features provided by Container Linux Configs (using Ignition low-level) * Requires terraform-provider-ct v0.2.1 plugin
* poseidon#145 * Additional users can be easily added upstream
Hi @dghubble, I would like run kubelet with I would like add another option to
Is it possible using this snippets? I think that maybe could be I good idea add the option Like this:
And create this file
And Please let me know if it is possible and I will be the pr. |
👍 @cjose3 - also encountered the need to customize the kubelet-wrapper params while trying to mount localvolumes via the local storage provisioner. kubelet will fail to initialize local volumes located in a sane path on the system (eg: /mnt) because that path is not bound within the kubelet's container.
I'd need to add another line to
Will fork for now, but I wish it was easier. Side note, i found that out the hard way, stracing kubelet 🤦♀️ 😿
|
Introduce the ability for users to supply Container Linux Config "snippets" for controllers or workers. Snippets are valid Container Linux Configs which are additively merged into the base Container Linux Configs that Typhoon uses to provision controllers and workers. Configs are validated, merged into a single config for use in instance user-data. Validation errors are shown with line numbers during
terraform plan
.This is a major feature and has been long awaited.
Examples
Suppose a user would like to enable the BBR congestion control algorithm (arbitrary example customization). That requires setting a
/etc/sysctl.d/bbr.conf
file on hosts and would previously have necessitated making a tiny fork of Typhoon with the change. Now:Users may supply a list of valid Container Linux Config snippets to declare host disk provisioning details like systemd units, files, network configuration, etc.
Caveats
terraform-provider-ct
v0.2.1 pluginappend
) will allow. You cannot remove bits of the base config used by Typhoon. This reaffirms Typhoon's focus on minimalism.Partially addresses #140