https://rancher.com/ logo
#k3d
Title
# k3d
a

adamant-kite-43734

05/09/2022, 7:48 PM
This message was deleted.
w

wide-garage-9465

05/09/2022, 7:52 PM
Hey there 👋 What do you want to know from the docs? Auto-Deploy Manifests are a K3s feature And that issue just lead me to make a change on K3s level, allowing you to have subfolders in the manifests directory 👍
m

millions-alarm-86298

05/09/2022, 7:55 PM
well, i would like to see in docs a dedicated section about this with examples because for new users it's absolutely unclear that this feature exists. the reason is that not all k3d users are familiar with k3s and even understand that k3d is k3s for my case I'll be able to handle it myself, but for other users the dedicated section would be a great addition to existing features
w

wide-garage-9465

05/09/2022, 7:55 PM
m

millions-alarm-86298

05/09/2022, 7:56 PM
hmm
i was using search bar and i didnt' find this page :((
so my fault
w

wide-garage-9465

05/09/2022, 7:56 PM
Got ya. Would you mind creating a feature request? I hope that I'll find some time by the end of this month to work off some issues :) For you: volume shortcuts (also need documentation) are a nice thing regarding volume mounts "with a k3s meaning" (see release notes https://github.com/k3d-io/k3d/releases/tag/v5.3.0)
m

millions-alarm-86298

05/09/2022, 7:57 PM
thnx, sorry for stupid question
i guess it would work like ?
Copy code
... -v /my/custom/folder:k3s-manifests-custom
w

wide-garage-9465

05/09/2022, 8:07 PM
That's how it's intended to work, yep 👍🏼
m

millions-alarm-86298

05/09/2022, 8:07 PM
will try it
w

wide-garage-9465

05/09/2022, 8:07 PM
No stupid question, there's really not too much documentation around it 🤷‍♂️
m

millions-alarm-86298

05/09/2022, 8:08 PM
it's actually stupid because i just realized that i aws loooking at docs for 5.0.0 🤦‍♂️
w

wide-garage-9465

05/09/2022, 8:11 PM
Well, I have actually no clue when I added the docs around k3s features 🤷‍♂️ But then it was probably after 5.0.0 😬 Would be nice if search would suggest results from different versions as well.
m

millions-alarm-86298

05/09/2022, 8:28 PM
This - worked
Copy code
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
...
volumes:
  - volume: ${PWD}/test/e2e/kafka.yaml:/var/lib/rancher/k3s/server/manifests/kafka.yaml
    nodeFilters: ["all"]
And this - failed
Copy code
apiVersion: <http://k3d.io/v1alpha4|k3d.io/v1alpha4>
...
volumes:
  - volume: ${PWD}/test/e2e/kafka.yaml:/k3s-manifests/kafka.yaml
    nodeFilters: ["all"]
w

wide-garage-9465

05/09/2022, 8:51 PM
Yeah, that's where docs are needed. The shortcuts can currently only be used on their own and not as a path item. This can certainly be enhanced.
m

millions-alarm-86298

05/10/2022, 12:01 PM
and btw leading slash must be present in a volume declaration, otherwise docker won't consider the dest path as valid i,e,
Copy code
- volume: ${PWD}/test/e2e/kafka.yaml:k3s-manifests/kafka.yaml
will throw an docker error
w

wide-garage-9465

05/10/2022, 12:19 PM
K3d should replace the shortcut with the actual path before passing it to docker.
m

millions-alarm-86298

05/10/2022, 12:45 PM
got it
3 Views