This is just a helper tool to generate k3d config files. It might be a little value in it, since it's been created just to play with CUE lang.
Actually the purpose was to try to add the bellow option into multiple clusters automatically:
extraArgs:
- arg: --kubelet-arg=feature-gates=KubeletInUserNamespace=true
nodeFilters:
- all:*
This setting is required to run k3d clusters on rootless podman (valid in my case for podman 4.6.2).
First download follow the link to download cue.
Please look at the example in values/sample.yaml. The clusters.{name}
objects define k3d config files to generate. Note that there is apply.set
helper to provide common settings for created clusters.
Note: only common options.k3s
can be provided.
Following the command bellow to generate the configs (output is written into clusters/sample
):
cue cmd -t input=values/sample.yaml gen
Output:
To create clusters run the commands bellow:
k3d cluster create --config clusters/sample/rome.yaml
k3d cluster create --config clusters/sample/milan.yaml