-
Notifications
You must be signed in to change notification settings - Fork 83
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
Consolidate and improve Nomad-related documentation #168
Comments
Any help with Nomad docs is extremely appreciated! There are definitely some items that need improvement. |
Unfortunately, node-manual is basically empty and that makes sense considering it doesn't do much. But And do this "final" config file need to be identical on both node and controller? Next, for
I tried to infer that from other examples, and it seems at minimum we would also need an iscsi section with portal IP so that Node host knows where to discover devices? iscsi:
targetPortal: "server[:port]" And maybe also CHAP credentials, but here it gets hard because related config entries differ between each back-end (FreeNAS, ZFS, Synology), so I temporarily opened access to all volumes hoping to skip that. In this In my example Nomad client can access the volume I created, I can also use it (mount, write). But it's visible as
Or is I spent some time trying several different combinations, but |
Wow you're digging in deep! Great stuff. I'm not even sure if There are 3 drivers (currently,
The Perhaps @tgross can comment on the ability (or perhaps future ability) of the above concerns. |
Very interesting, thank you for the patience and information!
Glad that I asked (after I realized I wasn't getting any closer)!
This was what I had hoped would work:
iscsi:
baseiqn: "iqn.2010-01.com.vendor:array-id."
shareStrategyTargetCli:
- basename: "uniqVolName1"
- basename: "uniqVolName2"
For iSCSI storage I think that would be valuable compared to non-CSI hostpath if different Nodes could rescan and provision the same named volume on another Nomad client. If node-common can't work but there's a chance of configuring Node to provide CSI-style local hostpath, that'd still be interesting. Meanwhile I'll also look at other modes and check the spec document to gain a better understanding of how Democratic CSI works. |
I think I understand where you're coming from. I'm not sure if such a thing is even possible with
Of particular issue would be, upon detach Your understanding of the pros/cons of Thanks for the help sorting this out, it's really appreciated and I'm excited to see better documentation around |
Got it!
Yes, that's exactly desired end state once a PV is "registered" in Nomad. In Nomad we can only specify volume-name in volume stanza, but
That's why thought if this LUN info was in Node configuration, then I'd just need |
Per- |
In the case I use Does |
For that style of deployment it's actually a single
When deployed as such, it's a single config file as it's a single process (per-node). The fact that directory is in that config file twice is just a nuance of the abstract code I used to implement that driver :( The values should be the same as indicated in the example, but they can be any path you'd like on the node. |
They support all-in-one, I'll give it a try.
|
It looks like Nomad-related information is almost correct, so I propose to improve some details after Nomad v1.3.0 comes out (by then things should largely settle).
General points:
Nomad info in the Wiki and repo (examples) are inconsistent. It may be better to have content info in just one location (repo) to save people time from trying examples that can't work.
There are also some inaccuracies in both the Wiki and repo examples for Nomad, but looking at the progress being made in other Nomad-related issues, it's likely there will be known good configs that can be used to update repo examples.
Some specific issues with the repo examples:
This syntax is confusing. If
config
is the exact string that should be there, then that's fine, but it looks like# config...
(i.e. insert your config) is what we're supposed to add in there.Here it looks like file system access is suggested instead of block device (Nomad docs).
For D-CSI users who want to use
node-manual
(such as myself), repo's main README.md is short on details for K8s and Nomad examples don't show how K8s PVs translate into Nomad-style configuration and volume claims. As an example, I got to the point where controller & node are running (node-manual
mode) and an iSCSI volume is visible to the Nomad client, but even though I "volume register"-ed this existing volume in Nomad asdcsi-267
it's not clear to me how Nomad or Democratic-CSI can link that volume to an iSCSI Target visible to the client/server (I use singleton Nomad cluster) withnode-manual
setup. I figure I need this iSCSI target info inserted to either controller or node (Nomad) job file, but I'm not sure where and how.I may submit a PR with some examples if I figure this out, but I'm new to this CSI driver.
The text was updated successfully, but these errors were encountered: