Help Center/ Cloud Container Engine/ FAQs/ Networking/ Security Hardening/ How Do I Configure an Access Policy for a Cluster?
Updated on 2024-09-04 GMT+08:00

How Do I Configure an Access Policy for a Cluster?

After the public API Server address is bound to the cluster, modify the security group rules of port 5443 on the master node to harden the access control policy of the cluster.

  1. Log in to the CCE console and click the cluster name to access the cluster console. On the Overview page, copy the cluster ID in the Basic Info area.
  2. Log in to the VPC console. In the navigation pane, choose Access Control > Security Groups.
  3. Select Description as the filter criterion and paste the cluster ID to search for the target security group.
  4. Locate the row that contains the security group (starting with {CCE cluster name}-cce-control) of the master node and click Manage Rules in the Operation column.
  5. On the page displayed, locate the row that contains port 5443 and click Modify in the Operation column to modify its inbound rules.

  6. Change the source IP address that can be accessed as required. For example, if the IP address used by the client to access the API Server is 100.*.*.*, you can add an inbound rule for port 5443 and set the source IP address to 100.*.*.*.

    In addition to the client IP address, the port must allow traffic from the CIDR blocks of the VPC, container, and the control plane of the hosted service mesh to ensure that the API Server can be accessed from within the cluster.

    To use CloudShell, you need to allow traffic from 198.19.0.0/16 on port 5443. Otherwise, you cannot access the cluster using CloudShell.

  7. Click Confirm.