In Container Service for Kubernetes (ACK) clusters, the IP addresses of nodes frequently change due to the dynamic scaling of nodes. You can create ACK cluster synchronization nodes to automatically synchronize the IP addresses of nodes in ACK clusters to an address book of Cloud Firewall. This reduces the workload of manual updates and improves security.
Usage notes
Only ACK clusters that use the Terway network plug-in are supported. For more information about the supported network plug-in types, see FAQs about container networks.
Synchronization nodes need to obtain information about pods in ACK clusters. Therefore, when you create a synchronization node, you must grant role-based access control (RBAC) permissions to the service-linked role of Cloud Firewall on the ACK cluster to which the synchronization node belongs.
Procedure
Log on to the Cloud Firewall console. In the left-side navigation pane, choose . On the ACK cluster tab, click Create Sync Node to go to the Create Sync Node panel.
Grant permissions to the AliyunServiceRoleForCloudFW service-linked role based on the on-screen instructions. To go to the authorization page, click Container Service-authorization management-RAM role or Ready, go to authorization.
ImportantThe first time you create a synchronization node in an ACK cluster, you must grant the service-linked role of Cloud Firewall at least the Restricted User RBAC permission on the ACK cluster.
You can select a specific namespace or all namespaces for access control based on your business requirements.
If the required permissions are incorrectly configured, the health check fails. As a result, the synchronization node fails to be created.
For more information, see Use RBAC to manage the operation permissions on resources in a cluster.
After the authorization is complete, go back to the Cloud Firewall console and click Authorization completed to proceed to the next step.
If the authorization fails, click Unauthorized.
In the Create a synchronization node step, configure the following parameters.
After you configure the parameters, click OK. Then, the system checks the specified information and creates the synchronization node.
ImportantIf the Authorize Cloud Firewall RBAC permissions do not meet the requirements, the synchronization node fails to be created.
More operations
After the synchronization node is created, the node is displayed in the synchronization node list.
Operations:
Details: You can view the details of the synchronization node.
Modify: You can modify the information about the synchronization node.
NoteYou can modify only the values of Synchronization Node Name and Synchronization Cycle. To modify other information, delete the synchronization node and create a synchronization node.
Delete: You can delete the synchronization node.
NoteIf the synchronization node is referenced by an address book, you must first delete the address book before you can delete the synchronization node.
Status:
Status: the status of the synchronization node.
Health Status: the working status of the synchronization node. If the value of Health Status is Unhealthy, you can move the pointer over the related icon to view the cause.
Usage:
After the synchronization node is created, you can reference the node in an ACK address book. For more information, see Create a custom address book.