by moondev · 3y ago · 0 comments
In last contact I had with Flatcar (before we moved to Bottlerocket) one could still use cloud-init yaml even with Flatcar so that's what I'd recommend instead of trying to read through the unbounded number of github issues trying to track down why simple things don't work with ignition
As for "what advantages Flatcar provides," the answer is always "in comparison to what?" I haven't run a general-purpose OS in production in over 8 years, and I don't intend to ever go back to having a mutable OS. There are just too many opportunities for randos to "just ssh in and do this one thing" and then I have to spend hours tracking down why some machines behave different from their peers
Could you elaborate on this? I helped [1] create Ignition with Alex Crawford [0], its original author, while @ CoreOS in ~2015. To call what we were making then a "tire fire" seems comically hyperbolic for what was such a rudimentary bootstrapping tool, and generally unexpected for something we'd ship.
Has its scope grown out of control since those early days, or has it been mismanaged? We're coming up on a decade since my involvement...
[0] https://github.com/coreos/ignition/commits?author=crawford
[1] https://github.com/coreos/ignition/commits?author=vcaputo
My biggest heartburn is that I have[1] to compile a boot configuration document. Some of that may be a concession to Ignition being inexplicably written in JSON, but it's possible the transpiler does some massaging and restructuring of keys, I dunno, I didn't want to compile a boot document
This is how one creates a file in Ignition: https://coreos.github.io/ignition/examples/#create-files-on-...
Contrast that with https://cloudinit.readthedocs.io/en/20.1/topics/examples.htm...
I grant you that https://coreos.github.io/butane/examples/#files may be the example of pre-transpilation using the `inline:` structure but for my use case of authoring that UserData dynamically, I don't have a `!TranspileUsingCuteNameOfTheDay` in CloudFormation
And since I haven't had my hands on the Flatcar ecosystem in a few years, I'm not going to have access to the very specific pain points of "well, this cutesy named thing is broken because it depends on this other cutesy named thing" but what it boils down to is cloud-init behaves sanely, has been around forever, and can be authored easily in a bunch of different circumstances
fn-1: yes, I can appreciate it's "just a JSON document" but no reasonable person is going to author JSON string literals containing data: URIs for contents
Maybe you wouldn’t be if you didn’t use phrases like “tire fire” at other people’s work?
It sounds like Ignition isn’t your cup of tea, which is perfectly fine and few people could take issue with that. Tire fire is unnecessarily caustic and doesn’t really improve the discussion.
I like it a lot more than cloud-init in this scenario.
- there is a limited amount of retries (5?), so a network hiccup can easily cause the download to fail
- no control over which responses are fatal, so if you boot a VM with a config that references a URL that's still 404 due to async nature of something, then only a single attempt is made.
The company I work for uses Flatcar exclusively, but we don't use config chaining due to these limitations, and we have moved all file downloads to the shell scripts embedded into the config.
The benefit is reproducible deployments: Any deployment of a given configuration will reproduce with the same end result. Configuration is kept outside of the instance and does not drift. This is guaranteed across releases / versions (something we very explicitly and thoroughly test, for each of our releases).
(Perceived) drawback can be that it's a bit of a paradigm shift for operators. While Ignition eliminates the need to meddle with instances after provisioning, it can be a bit of a learning curve to produce a node's full config beforehand.