Skip to main content

Command Palette

Search for a command to run...

Consul dev quick start

Updated
1 min readView as Markdown
Consul dev quick start
B

I’ve been rocking the DevOps journey for a decade, starting with building Cisco’s software-defined datacenters for multi-region OpenStack infrastructures. I then shifted to serverless and container deployments for finance institutions. Now, I’m deep into service meshes like Consul, automating with Ansible and Terraform, and running workloads on Kubernetes and Nomad. Stick around for some new tech and DevOps adventures!

A simple way to startup an ACL-enabled Consul cluster in dev mode with a pre-defined master token

$ consul agent -dev \
-hcl 'acl { enabled = true default_policy = "deny" tokens { master = "H3ll0I@mM@st3rT0k3n" }}'

Verify if you can perform anything operation with the master token, For example:

$ consul operator raft list-peers -token H3ll0I@mM@st3rT0k3n