mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 04:15:41 +03:00
* Enhance front matter description for search * acl section * alloc section * config section * deployment section * eval section * job section * license section * namespace section * node section * node pool section * operator section * plugin section * quota section * recommendation section * scaling section * sentinel section * server section * service section * setup section * system section * tls section * var section * volume section * change reference to command reference * Apply suggestions from code review Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com> --------- Co-authored-by: Jeff Boruszak <104028618+boruszak@users.noreply.github.com>
36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'nomad volume detach command reference'
|
|
description: |
|
|
The `nomad volume detach` command detaches external storage volumes with Container Storage Interface (CSI) plugins.
|
|
---
|
|
|
|
# `nomad volume detach` command reference
|
|
|
|
The `volume detach` command detaches external storage volumes with Nomad's
|
|
[Container Storage Interface (CSI)][csi] support.
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad volume detach [options] [volume] [node]
|
|
```
|
|
|
|
The `volume detach` command requires two arguments, specifying the ID of the
|
|
volume to be detached and the node to detach it from. Detaching will fail if
|
|
the volume is still in use by an allocation.
|
|
|
|
Note that you can use a node ID prefix just as you can with other Nomad
|
|
commands, but if the node has been garbage collected, you may need to pass the
|
|
full node ID.
|
|
|
|
When ACLs are enabled, this command requires a token with the
|
|
`csi-write-volume` and `csi-read-volume` capabilities for the volume's
|
|
namespace.
|
|
|
|
## General options
|
|
|
|
@include 'general_options.mdx'
|
|
|
|
[csi]: https://github.com/container-storage-interface/spec
|