nsc buildkite queue update to configure an egress policy, custom
workload permissions, or OpenTelemetry tracing for a queue. You can set
individual options or provide all queue settings in a JSON file.
Usage
To update queue settings, first usensc buildkite queue list, which lists
all Buildkite queues that you have registered with Namespace. Find the ID of the queue you want to configure. With this ID, you can call
Use a JSON spec file
The CLI supports updating queue configuration from a JSON spec file. To start from your queue’s current settings, export your current spec withnsc buildkite queue describe, edit the
file, and apply it:
Available Settings
Egress Policy
You can configure an egress policy to be used for all jobs in this queue. Either use the--egress-policy command line flag or configure it in a spec file:
spec.json
Workload Permissions
Namespace supports custom workload permissions per queue, to enable fine-grained control over which jobs may access certain features. These can be configured using the--workload_permissions
flag or with a spec file. The example spec file below allows jobs in the queue to access the HTTP build cache.
spec.json
OpenTelemetry
OpenTelemetry tracing in the Buildkite agent can only be configured with a spec file, using theopen_telemetry_settings field.
The following fields are supported in the OpenTelemetry configuration of a Buildkite queue.
The following spec file applies OpenTelemetry settings to a queue and removes any configured
egress policy and workload permissions.
spec.json
Bearer: <token>, and
reference the resulting secret ID in a header as in the example above.
Use command-line flags
Instead of passing a spec file, it is also possible to define queue settings via individual command-line flags. To apply the egress policies and workload permissions matching the spec files above, using command-line flags:Options
—egress_policy <string>
Apply the workspace egress policy with this tag to jobs running for the queue.—output, -o <plain|json>
Output format for the updated queue. Supported values areplain and json.
Defaults to plain.
—remove_egress_policy
Remove the workspace egress policy tag from the queue.—reset
Reset all queue settings.—reset_permissions
Remove custom workload permissions from the queue.—spec_file <string>
Read the queue settings from the specified JSON file. When provided, the CLI ignores individual settings flags. See Use a JSON spec file above for an example.—workload_permissions <stringArray> (can be repeated)
Set a custom workload permission as JSON. Repeat this option to set multiple permissions.Related Topics
- nsc buildkite queue describe - Inspect a queue
- nsc buildkite queue list - List registered queues
- Egress Policies - Control network access from jobs
- Managing Buildkite Queues - Register queues and route Buildkite jobs to Namespace