diff --git a/IT/Hashicorp Nomad.md b/IT/Hashicorp Nomad.md index 465b3b1..b304d31 100644 --- a/IT/Hashicorp Nomad.md +++ b/IT/Hashicorp Nomad.md @@ -30,6 +30,27 @@ Running a task is generally done by: ## Installing the CLI https://developer.hashicorp.com/nomad/tutorials/get-started/gs-install#install-the-nomad-cli +## Creating a single node cluster + + +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 -- https://developer.hashicorp.com/nomad/tutorials/get-started/gs-overview -- https://developer.hashicorp.com/nomad/docs/drivers \ No newline at end of file +- +- +- https://developer.hashicorp.com/nomad/docs/configuration \ No newline at end of file