vault backup: 2024-10-07 14:48:40
This commit is contained in:
parent
287a95e479
commit
2fd51d50eb
@ -30,6 +30,27 @@ Running a task is generally done by:
|
|||||||
## Installing the CLI
|
## Installing the CLI
|
||||||
https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli
|
https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli
|
||||||
|
|
||||||
|
## Creating a single node cluster
|
||||||
|
<https://stackoverflow.com/questions/56112422/nomad-configuration-for-single-node-to-act-as-production-server-and-client>
|
||||||
|
|
||||||
|
Create a config file with in `/etc/nomad.d` named `config.hcl`:
|
||||||
|
```hcl
|
||||||
|
# https://developer.hashicorp.com/nomad/docs/configuration
|
||||||
|
# The client block configures the Nomad agent to accept jobs as assigned
|
||||||
|
# by the server.
|
||||||
|
# https://developer.hashicorp.com/nomad/docs/configuration/client
|
||||||
|
client {
|
||||||
|
enabled = true
|
||||||
|
}
|
||||||
|
server {
|
||||||
|
enabled = true
|
||||||
|
bootstrap_expect = 1
|
||||||
|
}
|
||||||
|
# The local directory where agent state is stored.
|
||||||
|
data_dir = "/opt/nomad"
|
||||||
|
name = "YOUR_NOMAD_NAME_HERE"
|
||||||
|
```
|
||||||
# Resources
|
# Resources
|
||||||
- https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview
|
- <https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview>
|
||||||
- https://developer.hashicorp.com/nomad/docs/drivers
|
- <https://developer.hashicorp.com/nomad/docs/drivers>
|
||||||
|
- https://developer.hashicorp.com/nomad/docs/configuration
|
Loading…
Reference in New Issue
Block a user