Deploy Consul Enterprise on Kubernetes
You can use this Helm chart to deploy Consul Enterprise by following a few extra steps.
Find the license file that you received in your welcome email. It should have a .hclic
extension. You will use the contents of this file to create a Kubernetes secret before installing the Helm chart.
Note: This guide assumes you are storing your license as a Kubernetes Secret. If you would like to store the enterprise license in Vault, please reference Storing the Enterprise License in Vault.
You can use the following commands to create the secret with name consul-ent-license
and key key
:
Note: If you cannot find your .hclic
file, please contact your sales team or Technical Account Manager.
In your values.yaml
, change the value of global.image
to one of the enterprise release tags.
Add the name and key of the secret you just created to server.enterpriseLicense
, if using Consul version 1.10+.
If the version of Consul is < 1.10, use the following config with the name and key of the secret you just created. (These values are required on top of your normal configuration.)
Note: The value of server.enterpriseLicense.enableLicenseAutoload
must be set to false
.
Now run helm install
:
Once the cluster is up, you can verify the nodes are running Consul Enterprise by
using the consul license get
command.
First, forward your local port 8500 to the Consul servers so you can run consul
commands locally against the Consul servers in Kubernetes:
In a separate tab, run the consul license get
command (if using ACLs see below):
If you get an error:
Then you have likely enabled ACLs. You need to specify your ACL token when
running the license get
command. First, assign the ACL token to the CONSUL_HTTP_TOKEN
environment variable:
Now the token will be used when running Consul commands: