-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improve (documentation?) of talos_machine_configuration_apply
#199
Comments
Also, to me, it's confusing that |
Wow, so that's why my changes were not being picked up by the workers. At this point it is disappointing to see how little thought was put into this provider and how barebones it feels. |
Yeah, the docs for v0.6 need some more details. Other examples: machine_configuration_apply:
cluster_kubeconfig
|
I haven't had a use case for the apply_mode attribute yet, but I would assume it's the same as the |
Say you have unconfigured Talos nodes and want to configure them using
talos_machine_configuration_apply
.You read the Talos documentation and you understand that
endpoint
is the "entrypoint" (probably your control plane) andnode
is where you want to perform the operation on.You might try something like this. Note that
talos_machine_configuration_apply.worker.endpoint
is set to the public IP of the control plane.This will successfully configure the control plane, but not the worker. When you think about it, it makes sense (we'll get to this). But before you realize this, you read the documentation, which says:
You might ask: "what do they mean by 'name'?" You also read:
You might ask: "Why 'bootstrap'? Sure, I want to bootstrap, but isn't this the 'apply' resource that can also be used after bootstrapping? Was this copy-pasted?"
You might even have the situation (depending on the execution order of your
talos_machine_configuration_apply
) that your control plane is initialized as type "worker" and you end up reading #23. Now you don't know whether to doubt yourself or this provider 🙂Finally, you realize that the target (worker) is not yet part of the cluster, so the control plane cannot communicate with it. Therefore, when using
talos_machine_configuration_apply
on an uninitialized node,endpoint
needs to be the public IP of your target.It would be great if the documentation could be more clear about this (and maybe other pitfalls - like how it behaves with
endpoint
andnode
oftalos_client_configuration
). Or maybe something can be changed in the waytalos_machine_configuration_apply
works.The text was updated successfully, but these errors were encountered: