mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 03:15:42 +03:00
* Docs: Fix broken links in main for 1.10 release * Implement Tim's suggestions * Remove link to Portworx from ecosystem page * remove "Portworx" since Portworx 3.2 no longer supports Nomad
42 lines
1.0 KiB
Plaintext
42 lines
1.0 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: 'nomad node meta apply command reference'
|
|
description: |
|
|
The `nomad node meta apply` command updates node metadata on client agents.
|
|
---
|
|
|
|
# `nomad node meta apply` command reference
|
|
|
|
Modify a node's metadata. This command only applies to client agents, and can
|
|
be used to update the scheduling metadata the node registers.
|
|
|
|
~> Changes are batched and may take up to 10 seconds to propagate to the
|
|
servers and affect scheduling.
|
|
|
|
This command uses the [`/v1/client/metadata` HTTP API][api].
|
|
|
|
## Usage
|
|
|
|
```plaintext
|
|
nomad node meta apply [-node-id ...] [-unset ...] key1=value1 ... kN=vN
|
|
```
|
|
|
|
## General options
|
|
|
|
@include 'general_options.mdx'
|
|
|
|
## Node Meta Apply options
|
|
|
|
- `-node-id` - Updates metadata on the specified node. If not specified the
|
|
node receiving the request will be used by default.
|
|
|
|
- `-unset` - Unset the comma separated list of keys.
|
|
|
|
## Examples
|
|
|
|
```shell-session
|
|
$ nomad node meta apply -unset testing,tempvar ready=1 role=preinit-db
|
|
```
|
|
|
|
[api]: /nomad/api-docs/client#update-dynamic-node-metadata
|