Create a HCP Consul Dedicated cluster
This page describes how to create HCP Consul Dedicated clusters, which are one or more Consul server agents that are installed, configured, and managed for you by HashiCorp. To use clusters that you create and host in your own environment, refer to link self-managed Community and Enterprise clusters to HCP Consul. For more information about the differences between the two types of clusters, refer to cluster management.
Prerequisites
Before you create a Consul cluster, configure the following HCP components:
- A HashiCorp virtual network (HVN)
- A peering connection or transit gateway attachment
- Routes for directing network traffic between the HVN and a target connection
Create a Consul cluster
Sign in to the HCP Portal.
Select the organization or project where you want to create the cluster. Because resources such as HVNs are associated with an individual project, you must create the cluster in the same project as the HVN peering that supports it.
Click Consul.
From the Consul Overview, click Deploy Consul.
Select HCP Consul Dedicated and then click Get Started.
Select the cloud provider where you host your services and then click Next.
Select HCP UI Workflow and then click Next.
Choose the HVN where you want to deploy your clusters. You should configure the HVN for the same environment where your Consul agents are deployed. If an appropriate HVN for your environment does not exist, click Create new network and then create a new HVN.
Enter a name for the cluster in the Cluster ID field. The cluster ID is a unique identifier that cannot be used for other active HCP Consul Dedicated clusters.
Select a cluster tier. Each tier enables a different set of Consul server features. Refer to cluster tiers for more information.
Select a cluster size. Cluster size is measured by the expected number of service instances the cluster supports. For example, a small cluster supports up to 500 service instances. For pricing information for each cluster size, refer to HCP Consul Dedicated Pricing.
Choose whether the cluster should be private or public. If you want to be able to access the Consul cluster UI from an external network, select Public. For production environments, we recommend using private Consul clusters.
- Public access is less secure. We do not recommend enabling this option for production servers.
- For additional security, enable Allow select IPs only. This option lets you whitelist up to three IPV4 address ranges in CIDR notation.
Choose the Consul version for your server agents. If you do not require a specific version, we recommend choosing the default option, which is the latest release of Consul.
Click Create cluster.
HCP then begins cluster creation. It takes about 10 minutes for the operation to finish. Wait until your cluster is created before connecting clusters and deploying agents.
Troubleshooting
You may encounter the following error when attempting to deploy a cluster in EKS using the code that HCP Consul provides:
This error occurs when using outdated versions of the AWS CLI and IAM authenticator. Upgrade both to the latest version, and then run the code provided by HCP to complete the process.
Edit a cluster after creation
After you create the cluster, you can change the cluster size, edit the select IPs that can access the cluster, and update the Consul version. However, you cannot modify the cluster name, tier, or HVN after creating a cluster.
To edit an existing cluster, complete the following steps:
- Sign in to the HCP Portal.
- Select the organization or project where created the cluster you want to edit.
- Click Consul.
- From the Consul Overview, next to the cluster you want to edit, click the and then Edit cluster.
HashiCorp automatically updates your Consul clusters to fix common vulnerabilities and exposures (CVE). To learn more about upgradeing your Consul version, refer to Upgrade your network.