Configuring Public Network Access for an Elasticsearch Cluster
When public network access is enabled for an Elasticsearch cluster, the cluster is automatically assigned a public IP address with dedicated dynamic BGP bandwidth, making it accessible from the Internet via HTTPS. You can configure public network access control by IP addresses or IP address ranges.
To enable public network access for Elasticsearch clusters, a shared load balancer is typically used for load balancing. If your workloads require quicker access, you are advised to use a dedicated load balancer to connect to your clusters. For details about its configuration, see Configuring a Dedicated Load Balancer for an Elasticsearch Cluster.
Constraints
- Enabling public network access for a CSS cluster may incur some fees, as it will need to use EIP and bandwidth resources.
- To enable public network access for an Elasticsearch cluster, two conditions must be met: the cluster version is 6.5.4 or later; the security mode and HTTPS access are both enabled.
- Public network access and the VPC Endpoint service share a load balancer. If you configure a whitelist for public network access, and because this whitelist is deployed to the shared load balancer, it will control not only access from the public network, but also access using private IP addresses through VPCEP. In this case, you need to add IP address 198.19.128.0/17 to the public network access whitelist to allow traffic through VPCEP.
Enabling Public Network Access
To enable public network access for an existing cluster, perform the following steps:
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Elasticsearch.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- On the Overview tab, check whether Security Mode and HTTPS Access are enabled in the Configuration area.
- If they are enabled, go to the next step to enable public network access.
- If either one is disabled, public network access cannot be enabled for the cluster.
Figure 1 Checking whether public network access can be enabled for the cluster - Click Enable next to Public Network Access. In the displayed dialog box, configure the necessary settings.
- Click OK to enable public network access.
After public network access is enabled, the public IP address, public network access control, and bandwidth information is displayed.
Figure 2 Enabling public network access
Managing Public Network Access
When public network access is enabled, you can check the public IP address, and modify the bandwidth and access control settings.
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Elasticsearch.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- On the Overview tab, manage public network access settings in the Configuration area.
Figure 3 Managing public network access
- Checking the public IP address
Record the IP address and port number displayed next to Public Network Access.
- Modifying public network access control settings
Click Modify next to Public Network Access Control. In the displayed dialog box, add or remove IP addresses or CIDR blocks to or from the whitelist. Click OK to save the change.
- Modifying public network bandwidth
Click Modify next to Bandwidth. In the displayed dialog box, change the bandwidth. Click OK to save the change.
- Checking the public IP address
Disabling Public Network Access
If public network access is no longer required for a cluster, disable it to release resources.

After the public IP address is disassociated, the cluster can no longer be accessed from the Internet through this IP address. If you disable public network access for a cluster and then re-enable it, the public IP address for accessing the cluster may change. Exercise caution.
- Log in to the CSS management console.
- In the navigation pane on the left, choose Clusters > Elasticsearch.
- In the cluster list, click the name of the target cluster. The cluster information page is displayed.
- On the Overview tab, find Public Network Access in the Configuration area, and click Disable next to it. In the displayed dialog box, enter CONFIRM and click OK.
After public network access is disabled, the public IP address and the Public Network Access Control and Bandwidth parameters disappear.
Accessing a Cluster Through the Public IP Address
After public network access is enabled, the cluster is assigned a public IP address. You can use this IP address plus a port number to access this cluster.
curl -u username:password -k 'https://10.62.xxx.xxx:9200/_cat/indices'
where, username and password indicate the username and password of the HTTPS-enabled security-mode cluster.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot