Is the reconfiguration of applications supported? #366
-
First of all: thank you for this great project! I do however have a question: Is it possible to reconfigure the applications on a running cluster? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@Mantany Yes, it's one way for these applications via terraform. But those applications are configured via HelmChart definitions. You can use If you want a GUI for all of this, most probably Rancher is your best bet. I personally deploy Rancher as a single node (cx21) cluster with rancher enabled for this kind of things. In the Readme, there's a lot of explanations on how HelmChart / HelmChart config work, please have a look. |
Beta Was this translation helpful? Give feedback.
-
Another way to modify and add stuff would be to use the created kustomization files and modify them. You can either change stuff in their and apply it via kustomize or copy it to your local machine and apply it from there. Here is how it is applied on the first install so you can do the same: terraform-hcloud-kube-hetzner/init.tf Line 265 in 5becc6f If you want to add e.g. longhorn you can get the "longhorn.yaml" you need from the template here: In there you can find a "${values}" placeholder. This placeholder is filled by either a supplied yaml file on the first setup or by some default values. The default values for that can be found here: terraform-hcloud-kube-hetzner/locals.tf Lines 303 to 338 in e466f03 So for longhorn you would replace the "${values}" placeholder with the "default_longhorn_values" and use ext4 as fstype and 3 as replica count (or change it as you want). Then you can either add that longhorn.yaml to the kustomization yaml and apply the kustomization or apply that file manually. That way you'd have longhorn deployed as it would have been on the first apply. These "HelmChart" resources are just kubernetes resources that can be removed, modified and added while the k3s operator for helm charts makes sure they get installed as needed. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the great suggestions. Do you think think that it is useful to manage everything (longhorn, hetzner cloud manger, hetzner csi) via fluxCD? Do you have experience regarding bigger production clusters? That way I would only use terraform for the infrastructure and fluxCD deployment and fluxCD to manage the complete state of the cluster. |
Beta Was this translation helpful? Give feedback.
-
@WolfspiritM 100% I had forgotten to mention the @Mantany Definitely, I think you could turn off every extra and start fresh, and use FluxCD for those. |
Beta Was this translation helpful? Give feedback.
Another way to modify and add stuff would be to use the created kustomization files and modify them.
There is a kustomize backup saved but it doesn't contain everything required.
However on the first control plane server you'll find a folder "/var/post_install/".
In there are all the files applied on the first install.
You can either change stuff in their and apply it via kustomize or copy it to your local machine and apply it from there.
What I did is moving this files to gitops (argocd) so they can be changed however needed.
Here is how it is applied on the first install so you can do the same:
terraform-hcloud-kube-hetzner/init.tf
Line 265 in 5becc6f