Prerequisites
Before attaching security groups to a node group, you need to create them. See Managing security groups for instructions on creating groups and defining rules. Set up the interface that you are going to use:- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Install and configure the Nebius AI Cloud CLI.
How to attach security groups to a node group
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
To attach a security group to a node group:
- In the web console, go to Compute → Kubernetes.
- Open the page of the cluster with the node group where you want to attach a security group.
- Switch to the Node groups tab and open the page of the required node group.
- On the node group page, switch to the Security groups tab and click Attach security groups.
- In the window that opens, select one or multiple security groups and click Attach security groups.
How to update security groups on an existing node group
- Web console
- CLI
- Go SDK
- Python SDK
- JavaScript SDK
To change or delete the attached security group from a node group:
- In the web console, go to Compute → Kubernetes.
- Open the page of the cluster with the node group where you want to change a security group.
- Switch to the Node groups tab and open the page of the required node group.
-
On the node group page, switch to the Security groups tab.
-
To attach a different security group:
- Click Attach security groups.
- In the window that opens, select one or multiple security groups and click Attach security groups.
-
To detach a security group:
- Click next to the security group you want to detach and select Detach.
- In the window that opens, enter the name of the security group and click Detach security group.
-
To attach a different security group: