Configure Custom Hostnames
Configuring your own domain for a ClusterNest cluster is extremely simple - add a CNAME pointing
to our domain customers.c9t.io, then set the custom hostname on the cluster.
ClusterNest Managed OpenSearch Service exposes two independent hostnames - one for the OpenSearch API, one for OpenSearch Dashboards - each customizable on its own:
opensearch.example.com CNAME customers.c9t.io
opensearch-dashboards.example.com CNAME customers.c9t.ioOnce the CNAMEs have been added, set custom_hostname and/or
dashboards_custom_hostname:
- Open the cluster form: Launch Cluster for a new cluster, or Edit on an existing one.
- Enter the OpenSearch hostname in OpenSearch Custom Hostname, the Dashboards hostname in OpenSearch Dashboards Custom Hostname, or both.
- Save the cluster.
resource "clusternest_opensearch" "logs" {
# ...
custom_hostname = "opensearch.example.com"
dashboards_custom_hostname = "opensearch-dashboards.example.com"
}See the resource reference for every field.
curl "https://api.clusternest.com/cluster/opensearch/$CLUSTER_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
| jq '.custom_hostname = "opensearch.example.com"
| .dashboards_custom_hostname = "opensearch-dashboards.example.com"' \
> cluster.json
curl -X PUT "https://api.clusternest.com/cluster/opensearch/$CLUSTER_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @cluster.json ClusterNest Managed Prometheus has a single hostname to customize:
metrics.example.com CNAME customers.c9t.ioSet custom_hostname:
- Open the cluster form: Launch Cluster for a new cluster, or Edit on an existing one.
- Enter the hostname in Custom Hostname.
- Save the cluster.
resource "clusternest_prometheus" "metrics" {
# ...
custom_hostname = "metrics.example.com"
}See the resource reference for every field.
curl "https://api.clusternest.com/cluster/prometheus/$CLUSTER_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
| jq '.custom_hostname = "metrics.example.com"' \
> cluster.json
curl -X PUT "https://api.clusternest.com/cluster/prometheus/$CLUSTER_ID" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
--data-binary @cluster.json Either way, the CNAME has to resolve before the cluster picks it up - DNS propagation, not anything on ClusterNest’s side, is what most delays take.