-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
🐛 Selecting "New Cluster" causes distro section of configfile to be overwritten #132
Comments
Thanks for reporting this! I'll take a look tonight! |
fixing in #133 |
Unfortunately it's only mostly fixed, options that contain more than one comma get split prematurely:| # which distros of Kubernetes to deploy. Options: kind, k3s, k3d
# NOTE: only kind and k3d are available on macOS at this time
k8s_distros:
k3s:
# set to true to enable deploying a Kubernetes cluster using k3s
enabled: true
# if k8s_distro set to k3s/k3d, you can add an array of extra arguments to pass
# to the k3s install script as a k3s.yaml file. If you enable cilium, we
# automatically pass in flannel-backend: none and disable-network-policy: true
k3s_yaml:
# if you enable MetalLB, we automatically add servicelb to the disable list
# enables encryption at rest for Kubernetes secrets
secrets-encryption: true
node-external-ip: 100.64.0.1
# disables traefik so we can enable ingress-nginx, remove if you're using traefik
disable:
- traefik
- servicelb
node-label:
- ingress-ready=true
kubelet-arg:
- max_pods=150
- node-ip=192.168.50.100
- cpu-manager-policy=static
- kube-reserved=cpu=1
- memory=2Gi
- ephemeral-storage=1Gi
- system-reserved=cpu=1
- memory=2Gi
- ephemeral-storage=1Gi
nodes:
control_plane: 1
workers: 0
|
ok, so this is going to require a second section for kubelet args to get this under control for k3s. Allow me a day or so to work on this as I need to add a tab to the k3s tui screen to fix this. |
ok, I've got most of this done in #135. I just need to fix this add new k3s option button and figure out another bug with the kubelet args duplicating. See screenshots below for current status: |
ok, fixed that issue, now just need to fix an issue to allow there to be multiple distros enabled at once, as right now, we assume you're launching either one cluster, or many clusters using kind or k3d. I want to add k8s_distros:
selected: "kind" and then we can use the "selected" field, instead of the |
so scratch this, I don't actually think it's necessary :) The issue was actually that I was querying a widget incorrectly after using multiple times. I was using |
Describe the Bug
As a user with a k3s config that has lots of kubelet args, I prefer to configure all of them via the config file like so:
When I launch the TUI and select "New Cluster", my config file is overwritten to the following:
However there is no issue if only using the cli
Steps to Reproduce Bug
Expected behavior
I would assume that the data from the config file would be loaded into the tui on init
User info (please complete the following information):
Debian12
k3s
smol-k8s-lab
: v2.0.0The text was updated successfully, but these errors were encountered: