---
updatedAt: 2026-09-23T12:07:34.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/quick-deploy-apps/llms.txt
---

# HashiCorp Nomad (cluster)

Deploy [HashiCorp Nomad](https://developer.hashicorp.com/nomad), a workload scheduler and orchestrator that lets you deploy and manage containerized or non-containerized applications using a single, unified workflow. Nomad uses bin packing for efficient job scheduling and resource optimization, and supports declarative infrastructure-as-code for your deployments.

> 📘 Cluster deployment
>
> This app deploys six Linode instances (three Nomad servers and three Nomad clients) to create a highly available HashiCorp Nomad cluster, each with the plan type and size you select.
>
> Each of these Linode instances will appear on your invoice as separate items. To deploy Nomad on a single instance instead, see [HashiCorp Nomad](https://techdocs.akamai.com/quick-deploy-apps/docs/hashicorp-nomad).

## 1. Deploy HashiCorp Nomad `cluster`

<div class="aligned">
   <img src="https://techdocs.akamai.com/terraform-images/img/clock.png" alt="" height="25" width="25" />
   <span class="span-header">&nbsp;Estimated deployment time:</span><span>&nbsp;15–20 minutes</span>
</div>

<br />

<div><p></p></div>

Follow the [deployment instructions](https://techdocs.akamai.com/quick-deploy-apps/docs/get-started) from the **Get started** section to configure the app, deploy it, and verify software installation.

For information on the app-specific configurations, see the [Configuration options](#configuration-options) section.

### Base distribution and plan

* **Supported distribution:** Ubuntu 24.04 LTS
* **Recommended plans:** Use an 8GB Dedicated CPU or 8GB Shared CPU instance.

### Configuration options

Configure the required options to deploy your instance. For additional customization, add advanced options.

The table maps the Cloud Manager UI fields to their corresponding API/CLI keys (`stackscript_data`) required for automated deployments.

**StackScript ID:** `1226544`

<table>
    <thead>
        <tr>
            <th>UI field</th>
            <th>API/CLI key</th>
            <th>Description</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td colspan="3">Required options</td>
        </tr>
        <tr>
            <td><b>Linode API token</b></td>
            <td><code>token_password</code></td>
            <td>The Linode API token used to deploy the additional Linode instances that make up this cluster.<br /> Follow <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-personal-access-tokens">Manage personal access tokens</a> to get a token on your account with <code>Read/Write</code> access to <code>Linodes</code>.</td>
        </tr>
        <tr>
            <td><b>Limited sudo user</b></td>
            <td><code>sudo_username</code></td>
            <td>Your preferred username for the limited sudo user, entered without any capital letters, spaces, or special characters.<br /> When adding a limited sudo user, the account is assigned to the <code>sudo</code> group, which provides elevated permissions when running commands with the <code>sudo</code> prefix.
                <blockquote>
                    <b>Note:</b> For easier and more secure access with the sudo user, add an <a href="https://techdocs.akamai.com/cloud-computing/docs/manage-ssh-keys">account SSH key</a> for the Cloud Manager user during deployment and select that user as an <code>authorized_user</code>. Their SSH pubkey will be assigned to both the root and limited sudo users.
                </blockquote>
            </td>
        </tr>
        <tr>
            <td><b>Email Address</b></td>
            <td><code>email_address</code></td>
            <td>A valid email address used for generating SSL certificates.</td>
        </tr>
        <tr>
            <td colspan="3">Advanced options</td>
        </tr>
        <tr>
            <td><b>Cluster Settings</b></td>
            <td><code>clusterheader</code></td>
            <td>Set to <i>Yes</i> by default. Details of the cluster settings, including instance counts and whether to add account SSH keys to all nodes.</td>
        </tr>
        <tr>
            <td><b>Add Account SSH Keys to All Nodes</b></td>
            <td><code>add_ssh_keys</code></td>
            <td>When set to <i>yes</i>, any SSH keys that are added to the root user account (in the <b>SSH Keys</b> section), are also added to your limited user account on all deployed Linode instances. Possible values are <i>yes</i> or <i>no</i>. Defaults to <i>yes</i>.</td>
        </tr>
        <tr>
            <td><b>Total Instance count</b></td>
            <td><code>cluster_size</code></td>
            <td>The total number of Linode instances deployed for this cluster. Value is fixed at <i>6</i> (3 servers and 3 clients).</td>
        </tr>
        <tr>
            <td><b>Nomad Server count</b></td>
            <td><code>servers</code></td>
            <td>The number of Nomad servers deployed. Value is fixed at <i>3</i>.</td>
        </tr>
        <tr>
            <td><b>Nomad Client size</b></td>
            <td><code>clients</code></td>
            <td>The number of Nomad clients deployed. Value is fixed at <i>3</i>.</td>
        </tr>
    </tbody>
</table>

> **Note:** After the app deployment completes, the password for your limited sudo user and other generated tokens are stored in the `~/.deployment-secrets.txt` file on the first provisioned instance, labeled `occ-server-1`. Log in to your instance as `root` through the [Lish console](https://techdocs.akamai.com/cloud-computing/docs/access-your-system-console-using-lish) or [SSH](https://techdocs.akamai.com/cloud-computing/docs/set-up-and-secure-a-compute-instance#connect-to-the-linode), then run `cat ~/.deployment-secrets.txt` to view its contents.

### Use API, CLI, or Terraform

In addition to deploying the app to a new Linode instance via Cloud Manager, you can also use the Linode API, CLI, or Terraform. When running the operation, you need to provide the StackScript ID, supported Linux distribution, and [app-specific fields](#configuration-options) along with the standard Linode deployment configurations.

> **Note:** [Generate a personal access token](https://techdocs.akamai.com/linode-api/reference/get-started#personal-access-tokens) to authenticate your [API](https://techdocs.akamai.com/linode-api/reference/api), [CLI](https://techdocs.akamai.com/cloud-computing/docs/cli-1), or [Terraform](https://registry.terraform.io/providers/linode/linode/latest/docs) requests.

```bash API
curl --location 'https://api.linode.com/v4/linode/instances' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json' \
    --header 'Authorization: Bearer abc123def456hij789klm' \
    --data-raw '{
        "region": "us-east",
        "type": "g6-dedicated-8",
        "image": "linode/ubuntu24.04",
        "label": "my-nomad-cluster-one-click-app",
        "root_pass": "@C0mpl3x#P@ssw0rd",
        "stackscript_id": 1226544,
        "stackscript_data": {
            "token_password": "abc123def456hij789klm",
            "sudo_username": "jsmith",
            "email_address": "jsmith@example.com"
        }
    }'
```
```bash CLI
linode-cli linodes create \
    --region us-east \
    --type g6-dedicated-8 \
    --label my-nomad-cluster-one-click-app \
    --image linode/ubuntu24.04 \
    --root_pass @C0mpl3x#P@ssw0rd \
    --stackscript_id 1226544 \
    --stackscript_data '{"token_password":"abc123def456hij789klm", "sudo_username":"jsmith", "email_address":"jsmith@example.com"}'
```
```json Terraform
resource "linode_instance" "my-linode" {
    region         = "us-east"
    type           = "g6-dedicated-8"
    label          = "my-nomad-cluster-one-click-app"
    image          = "linode/ubuntu24.04"
    root_pass      = "@C0mpl3x#P@ssw0rd"
    stackscript_id = 1226544
    stackscript_data = {
        "token_password" = "abc123def456hij789klm"
        "sudo_username"  = "jsmith"
        "email_address"  = "jsmith@example.com"
    }
}
```

## 2. Access the Nomad Web UI

1. Connect via [SSH](https://techdocs.akamai.com/cloud-computing/docs/set-up-and-secure-a-compute-instance#connect-to-the-linode) as the sudo user to the initially deployed instance, labeled `occ-server-1`.

2. View the contents of `~/.deployment-secrets.txt`.

   ```bash
   cat ~/.deployment-secrets.txt
   ```

   This file contains multiple generated tokens and your limited sudo user password. These tokens are used for authenticating to the Nomad Web UI, adding Nomad clients to the cluster, managing jobs, and managing the Consul service mesh. Save the contents securely.

3. Open your web browser and navigate to `http://[rDNS]`, replacing *\[rDNS]* with the reverse DNS address of the instance labeled `server-1`.

   See the [How to Configure rDNS](https://techdocs.akamai.com/cloud-computing/docs/configure-rdns-reverse-dns-on-a-compute-instance) guide for details about viewing and editing rDNS.

4. On the [Nomad Web UI](https://developer.hashicorp.com/nomad/docs/job-run), click the token link and enter the `nomad_user_token` from the `~/.deployment-secrets.txt` file to authenticate.

   Once authenticated, you can manage your cluster, jobs, integrations, and ACL tokens.

> 📘
>
> HashiCorp recommends using mutual TLS (mTLS) with a private CA to secure cluster communications and the web UI. See the HashiCorp documentation for more details:
>
> * [Enable TLS Encryption for Nomad](https://developer.hashicorp.com/nomad/tutorials/archive/security-enable-tls)
> * [Nomad TLS Block Configuration](https://developer.hashicorp.com/nomad/docs/configuration/tls)

If you need additional clients for your cluster, see [HashiCorp Nomad Clients (cluster)](https://techdocs.akamai.com/quick-deploy-apps/docs/hashicorp-nomad-clients-cluster) to scale horizontally by deploying three, five, or seven additional Linode instances as clients.

## Additional resources

The HashiCorp Nomad cluster provides default configurations to get you started. For more information, see their official documentation.

* [HashiCorp Nomad Architecture](https://developer.hashicorp.com/nomad/docs/architecture)
* [HashiCorp Nomad Configuration](https://developer.hashicorp.com/nomad/docs/configuration)
* [HashiCorp Nomad Job Specification](https://developer.hashicorp.com/nomad/docs/job-specification)

> 📘
>
> Note that we can't vouch for the accuracy or timeliness of externally hosted resources.

# Sibling pages

* [Apache Airflow](https://techdocs.akamai.com/quick-deploy-apps/docs/apache-airflow.md)
* [Apache Guacamole](https://techdocs.akamai.com/quick-deploy-apps/docs/apache-guacamole.md)
* [Apache Kafka (cluster)](https://techdocs.akamai.com/quick-deploy-apps/docs/apache-kafka-cluster.md)
* [Appwrite](https://techdocs.akamai.com/quick-deploy-apps/docs/appwrite.md)
* [Backstage](https://techdocs.akamai.com/quick-deploy-apps/docs/backstage.md)
* [Cribl](https://techdocs.akamai.com/quick-deploy-apps/docs/cribl.md)
* [Django](https://techdocs.akamai.com/quick-deploy-apps/docs/django.md)
* [Docker](https://techdocs.akamai.com/quick-deploy-apps/docs/docker.md)
* [Flask](https://techdocs.akamai.com/quick-deploy-apps/docs/flask.md)
* [Gitea](https://techdocs.akamai.com/quick-deploy-apps/docs/gitea.md)
* [GitLab](https://techdocs.akamai.com/quick-deploy-apps/docs/gitlab.md)
* [GlusterFS (cluster)](https://techdocs.akamai.com/quick-deploy-apps/docs/glusterfs-cluster.md)
* [Harbor](https://techdocs.akamai.com/quick-deploy-apps/docs/harbor.md)
* [HashiCorp Nomad](https://techdocs.akamai.com/quick-deploy-apps/docs/hashicorp-nomad.md)
* [HashiCorp Nomad Clients (cluster)](https://techdocs.akamai.com/quick-deploy-apps/docs/hashicorp-nomad-clients-cluster.md)
* [Jaeger](https://techdocs.akamai.com/quick-deploy-apps/docs/jaeger.md)
* [Jenkins](https://techdocs.akamai.com/quick-deploy-apps/docs/jenkins.md)
* [MEAN Stack](https://techdocs.akamai.com/quick-deploy-apps/docs/mean-stack.md)
* [Microweber](https://techdocs.akamai.com/quick-deploy-apps/docs/microweber.md)
* [NATS](https://techdocs.akamai.com/quick-deploy-apps/docs/nats.md)
* [NetFoundry Edge Router](https://techdocs.akamai.com/quick-deploy-apps/docs/netfoundry-edge-router.md)
* [Node.js](https://techdocs.akamai.com/quick-deploy-apps/docs/nodejs.md)
* [OpenLiteSpeed Django](https://techdocs.akamai.com/quick-deploy-apps/docs/openlitespeed-django.md)
* [OpenLiteSpeed Node.js](https://techdocs.akamai.com/quick-deploy-apps/docs/openlitespeed-nodejs.md)
* [RabbitMQ](https://techdocs.akamai.com/quick-deploy-apps/docs/rabbitmq.md)
* [Ruby on Rails](https://techdocs.akamai.com/quick-deploy-apps/docs/ruby-on-rails.md)
* [Saltcorn](https://techdocs.akamai.com/quick-deploy-apps/docs/saltcorn.md)
* [Splunk](https://techdocs.akamai.com/quick-deploy-apps/docs/splunk.md)
* [VS Code Server](https://techdocs.akamai.com/quick-deploy-apps/docs/vscode-server.md)