-
Notifications
You must be signed in to change notification settings - Fork 48
Packet Quickstart: add machine types to the example config #736
Conversation
Currently it's not possible to deploy the latest lokomotive release on Packet without specifying the machine type. Figuring out the right parameters in the config takes a while. Make this easier by adding them to the example config.
Thanks for the PR @marga-kinvolk.
lokomotive/assets/lokomotive-kubernetes/packet/flatcar-linux/kubernetes/variables.tf Lines 43 to 47 in 1afc56c
On My guess is your Packet project doesn't allow |
My project (the Flatcar sponsored project) doesn't allow neither I understand wanting to keep the documentation simple, but I was following the "quick start" guide and had to instead read a rather long and confusing reference page to understand how to change the machine types. Given my experience with Packet so far (for deploying Flatcar infra, outside of Lokomotive) I think that choosing the machine type is something that belongs in the quick start and not in the "For more things read this long and unfriendly page". Why I say the "Packet configuration reference" is not particularly friendly:
Apart from this, the current example config in the quick start includes several parameters that aren't explained at all, so I'm not sure adding a couple of parameters that are self-explanatory means the user would have to "worry" about them. I asked on Slack about this and my understanding was that adding it to the example config would be helpful. If you think it's definitely not ok, would you agree to add a troubleshooting section about not being able to provision the default machine type and how to change it? |
I think it's quite important to add defaults for this in the quickstart. Currently in lokomotive, as discussed in the 0.3.0 release PR, if the controller machine type is changed, your cluster will be completely broken and etcd data totally gone. For workers, you will experience downtime. Therefore, I would not ever advice anyone to create a cluster without defaults, as the quickstart is doing. We can (and should!) create an issue for this, but as long as the currrent behavior is present, no example should rely on defaults for controller nodes. |
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.
LGTM.
Added one question that I is probably trivial to resolve without changes, so marking as LGTM.
Let me know if changes are needed and I can look again :)
@marga-kinvolk true, the config reference could definitely use an overhaul. It's tracked here: #368 AFAICT the main use for a default value for the machine types is when deploying test clusters, likely using the quickstart. That's arguably the only case where the user might say "just give me cluster, I don't care about the hardware". So, following the above maybe we should just make the machine type knobs required (and add values to the config sample in the quickstart like you've done here). |
@johananl you are completely ignoring my comment in your reasoning. I think what you said is just not true if you take into account my comment. I also disagree with what you are saying. Someone creating a cluster will pay for the resources, so I don't think it is "I don't care, I trust your defaults, give me some hardware". Furthermore, I would not assume that people deploting with a quickstart will throw away their clusters. |
@rata looks like a miscommunication here 🙂 I've read your comment and took it into account. I'm OK with adding the machine types to the docs, and suggested that in addition we consider making the knobs required since I can't think of cases where there user wouldn't want to determine the machine type (i.e. the user will likely always want to decide what hardware to use and pay for). Seems to me we are aligned about adding the values to the quickstart. I'll leave it up to you to decide if you want to also change these knobs to required (that was a just suggestion). |
Sorry, as we talked on slack, I completely misread your last sentence. Cool, IMHO, we should:
Am I missing something? |
Hey, can this be merged then? Should I merge it or will one of the Lokomotive folks do it? |
I'll merge this and open follow up issues. |
The existing quickstart guides don't contain config snippets (rather, they contain a link to a sample config file). We already have issues for refactoring the remaining quickstarts following the Packet one: The description suggests to use the Packet quickstart as a reference so I think we should be good. |
@rata I'm not sure I understand what you mean here. If you think we need a new issue, could you please open one? |
Sorry it wasn't clear. I created this issue for that: #803 Thanks! |
Currently it's not possible to deploy the latest lokomotive release on Packet without specifying the machine type. Figuring out the right parameters in the config takes a while. Make this easier by adding them to the example config.