You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
Is your feature request related to a problem? Please describe.
I've spent several days, trying to get k3s options, that had worked with k3os <= v0.2.1, working again with k3os >= v0.3.0. I was struggling with cluster-cidr and service-cidr options, that take an additional value as argument. But this relates to all k3s options that take additional values.
Describe the solution you'd like
The following config.yaml does no longer work:
If the --cluster-cidr and --service-cidr (or any other CLI) flags ever worked as specified above then that was a bug. This is because k3s_args is an exec-style (aka uninterpreted) argument array, this means that k3os is invoking k3s like so:
FATA[0000] flag provided but not defined: -cluster-cidr 10.107.0.0/23
Which is k3s complaining that a flag was specified that it doesn't understand because we have passed --cluster-cidr 10.107.0.0/23as a single argument and not two. There is a UNIX-y Go-ism that allows us to pass flag values as single arguments, that being the --flag-name=value syntax, and this alternative syntax could be better documented with examples.
Is your feature request related to a problem? Please describe.
I've spent several days, trying to get
k3s
options, that had worked withk3os <= v0.2.1
, working again withk3os >= v0.3.0
. I was struggling with cluster-cidr and service-cidr options, that take an additional value as argument. But this relates to allk3s
options that take additional values.Describe the solution you'd like
The following
config.yaml
does no longer work:k3s
does not start up properly and logs strange error messages to/var/log/k3s-service.log
.Describe alternatives you've considered
The following
config.yaml
using '=' does work, and should be documented:The following
config.yaml
using separate lines and double quotes does work:And the following
config.yaml
using separate lines and no quotes does work, and should be documented:Additional context
Thanks to the Rancher folks for clarifying the
k3s_args
options to me.The text was updated successfully, but these errors were encountered: