Closed carlospalavecino closed 1 year ago
Hi,
Thanks for your suggestion.
This is not in scope and has been discussed before. It is a non-goal for k3sup. It'll always be command-line based, see how this is approached through a simple bash file:
https://www.openfaas.com/blog/production-faas-linode/
Maybe what you're looking for if you want this complex YAML definition is Ansible or Pulumi? Rancher RKE might also do what you're looking for.
Alex
Hi, thanks for the hard work. I was wondering if it would be a good idea to implement a yaml file to define all the infrastructure (control plane, etcd, workers and their features) and the current flags in a single place, so with a single command, k3sup could deploy the entire infrastructure. Something like kubekey is doing (but isn't working on k3s). The infrastructure could be versioned and uploaded to a private repo and even we could handle the updates and the changes from a single file on an easy way.
Why do you need this?
I'm just starting to working on kubernetes and found in k3s + k3sup a sweet spot, this app (k3sup) makes the deploy even easier, I think it could be a nice improvement. I'm deploying some nodes right now in my homelab, but I think a feature like this would give you more control over deployment when you have 5 or more nodes.
Expected Behaviour
I think it could be another way to make the install or upgrade simply changing the k3s version
It could save a sample config file with a command
Current Behaviour
Right now we need to run the k3sup command for each node with the needit flags
Possible Solution
We could deploy all the infrastructure defined in the yaml file in one line and let k3sup deploy each node
I know this is a k8s manifest, but perhaps an abstraction of this makes more sense.
Do you want to work on this?
I'm not a Go developer, but if someone could help me i think i could try
Subject to design approval, are you willing to work on a Pull Request for this issue or feature request?