Nomploy Nomad Packs

← All packs

etcd v0.1.0

Databases

etcd — a distributed, strongly-consistent key/value store (the datastore behind Kubernetes), with a gRPC API and watch/lease primitives for config and coordination. Deployed here as a single node, host-networked with a data volume.

nomad-pack run etcd --registry nomploy
1 task client 2379peer 2380 1 volume image quay.io/coreos/etcd:v3.5.16
Variables 10
values.hcl

Save as values.hcl, edit, then run:

nomad-pack run etcd -f values.hcl --registry nomploy
# The name of the Nomad job.
job_name = "etcd"

# The Nomad namespace to deploy into.
namespace = "default"

# The datacenters to deploy to.
datacenters = ["*"]

# The etcd container image. Pin a tag in production.
image = "quay.io/coreos/etcd:v3.5.16"

# Host port for the client (gRPC/HTTP) API.
client_port = 2379

# Host port for peer communication.
peer_port = 2380

# Host/IP advertised to clients (advertise-client-urls). 127.0.0.1 works for co-located clients; set the node IP for remote clients.
advertise_host = "127.0.0.1"

# Named volume for the etcd data directory (/etcd-data).
data_volume = "etcd_data"

# Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
constraints = []

# The task resources.
resources = {
    cpu    = 300
    memory = 256
  }
NameTypeDefaultDescription
job_name string
"etcd"
The name of the Nomad job.
namespace string
"default"
The Nomad namespace to deploy into.
datacenters list
["*"]
The datacenters to deploy to.
image string
"quay.io/coreos/etcd:v3.5.16"
The etcd container image. Pin a tag in production.
client_port number
2379
Host port for the client (gRPC/HTTP) API.
peer_port number
2380
Host port for peer communication.
advertise_host string
"127.0.0.1"
Host/IP advertised to clients (advertise-client-urls). 127.0.0.1 works for co-located clients; set the node IP for remote clients.
data_volume string
"etcd_data"
Named volume for the etcd data directory (/etcd-data).
constraints list
[]
Placement constraints. Pin to the node holding the volume. On a nomploy cluster: attribute = "$${meta.nomploy_control_plane}", operator = "=", value = "true".
resources object
{
    cpu    = 300
    memory = 256
  }
The task resources.
Readme

etcd

etcd — a distributed, strongly-consistent key/value store (the datastore behind Kubernetes), with a gRPC API and watch/lease primitives for configuration and coordination.

Single node, host-networked with a data volume.

Deploy

nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run etcd --registry=nomploy

Configure

Variable Default Description
client_port 2379 Client (gRPC/HTTP) API.
peer_port 2380 Peer communication.
advertise_host 127.0.0.1 Advertised client host — set the node IP for remote clients.
data_volume etcd_data /etcd-data.
image quay.io/coreos/etcd:v3.5.16 Container image. Pin a tag in production.
resources { cpu = 300, memory = 256 } Task resources.

Single node with no authentication — keep it on a trusted network. advertise_host must be reachable by clients (127.0.0.1 only works for co-located ones). Pin the job to the node holding the volume with constraints.