Table: nomad_namespace - Query Nomad Namespaces using SQL
Nomad Namespaces is a feature of HashiCorp's Nomad, an orchestration system that enables the organization and segmentation of tasks. It allows for the isolation of tasks and resources, providing a way to separate teams or environments within a single Nomad cluster. This feature enhances the efficiency and security of task management in the system.
Table Usage Guide
The nomad_namespace
table provides insights into namespaces within HashiCorp's Nomad orchestration system. As a DevOps engineer, explore namespace-specific details through this table, including their configurations and associated metadata. Utilize it to understand the structure and organization of tasks within your Nomad system, and to enhance the efficiency and security of your task management.
Important Notes
- You need to specify the
namespace
config argument in thenomad.spc
file to be able to query this table.
Examples
Basic info
Explore the basic information of your namespaces in Nomad to gain insights into their creation and modification indices. This can be useful for tracking changes and understanding the lifecycle of your namespaces.
select name, description, create_index, modify_indexfrom nomad_namespace;
select name, description, create_index, modify_indexfrom nomad_namespace;
List the disabled task drivers of namespaces
Uncover the details of task drivers that are inactive within various namespaces. This allows for an assessment of system capabilities and potential areas of improvement.
select name, description, capabilities -> 'DisabledTaskDrivers' as disabled_task_driversfrom nomad_namespace;
select name, description, json_extract(capabilities, '$.DisabledTaskDrivers') as disabled_task_driversfrom nomad_namespace;
Schema for nomad_namespace
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
capabilities | jsonb | A pointer to a NamespaceCapabilities struct that defines the capabilities of the namespace. | |
create_index | bigint | = | An unsigned 64-bit integer representing the index at which the namespace was created. |
description | text | A string providing a description or summary of the namespace. | |
meta | jsonb | A map containing additional metadata associated with the namespace. | |
modify_index | bigint | An unsigned 64-bit integer representing the index at which the namespace was last modified. | |
name | text | = | A string representing the name of the namespace. |
quota | text | A string specifying the maximum usage limit for the namespace. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
title | text | The title of the namespace. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- nomad
You can pass the configuration to the command with the --config
argument:
steampipe_export_nomad --config '<your_config>' nomad_namespace