Consul dev quick start

1 min read

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
0
Subscribe to my newsletter
Read articles from Bruce L directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Bruce L
Bruce L
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!