Skip to content

Latest commit

 

History

History
96 lines (82 loc) · 4.3 KB

README.md

File metadata and controls

96 lines (82 loc) · 4.3 KB

HashiCorp Nomad One-Click CLUSTER

HashiCorp Nomad is a simple and flexible container orchestration platform for managing workloads at scale. The Akamai Connected Cloud One-Click CLUSTER will deploy 3 Nomad Servers and 3 Nomad Clients, bootstrapped into a single cluster and ready to accept jobs. Limitations: The current bootstrap method limits to ONE server cluster per datacenter.

Software Included on Nomad Servers

Software Version Description
Nomad 1.5.2 HashiCorp Container Orchestration
Consul 1.16.1 HashiCorp Service Discovery Mesh
Fail2ban 0.11.2 Provides protection against brute force and authentication attempts
UFW 0.36 Easy-to-use firewall wrapper used to allow HTTP/S and SSH ports
Certbot 1.12 Is used to obtain HTTPS/TLS/SSL certificate for the provided domain

Software Included on Nomad Clients

Software Version Description
Nomad 1.5.2 HashiCorp Container Orchestration
Consul 1.16.1 HashiCorp Service Discovery Mesh
Docker latest Container Management Service
Java 17.0.1 Java JDK
Fail2ban 0.11.2 Provides protection against brute force and authentication attempts
UFW 0.36 Easy-to-use firewall wrapper used to allow HTTP/S and SSH ports
Certbot 1.12 Is used to obtain HTTPS/TLS/SSL certificate for the provided domain

Supported Distributions:

  • Ubuntu 22.04 LTS

Linode Helpers Included

Name Action
Hostname Assigns a hostname to the Linode based on domains provided via UDF or uses default rDNS.
Update Packages The Update Packages module performs apt update and upgrade actions as root.
UFW Add UFW firewalls to the Linode
Fail2Ban The Fail2Ban module installs, activates and enables the Fail2Ban service.

Use our API

Customers can choose to the deploy the Nomad One-Click Cluster through the Linode Marketplace or directly using API. Before using the commands below, you will need to create an API token or configure linode-cli on an environment, and substitute for default values.

SHELL:

curl -H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-X POST -d '{
    "authorized_users": [
        "user1",
        "user2"
    ],
    "backups_enabled": false,
    "booted": true,
    "image": "linode/ubuntu22.04",
    "label": "nomad-occ",
    "private_ip": true,
    "region": "us-ord",
    "root_pass": "A_Really_Great_password",
    "stackscript_data": {
        "clusterheader": "Yes",
        "add_ssh_keys": "yes",
        "cluster_size": "6",
        "servers": "3",
        "clients": "3",
        "token_password": "LINODE_API_TOKEN",
        "sudo_username": "sudo_user"
        "email_address": "EMAIL_ADDRESS",
    },
    "stackscript_id": 1226544,
    "tags": [],
    "type": "g6-dedicated-4"
}' https://api.linode.com/v4/linode/instances

CLI:

linode-cli linodes create \
  --authorized_users user1 \
  --authorized_users user2 \
  --backups_enabled false \
  --booted true \
  --image 'linode/ubuntu22.04' \
  --label nomad-occ \
  --private_ip true \
  --region us-ord \
  --root_pass 'A_Really_Great_password' \
  --stackscript_data '{"clusterheader": "Yes","add_ssh_keys":"yes","cluster_size":"6","clients":"3","servers":"3","token_password":"LINODE_API_TOKEN","sudo_username":"user1","email_address":"EMAIL_ADDRESS"}' \
  --stackscript_id 1226544 \
  --type g6-dedicated-4

Resources