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.
Save as values.hcl, edit, then run:
# 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
}
| Name | Type | Default | Description |
|---|---|---|---|
| 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. |
No variables match.
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.
nomad-pack registry add nomploy https://github.com/Nomploy/nomad-packs
nomad-pack run etcd --registry=nomploy
| 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_hostmust be reachable by clients (127.0.0.1only works for co-located ones). Pin the job to the node holding the volume withconstraints.