Prerequisites
Set up the interface that you are going to use:- CLI
- Terraform
- Go SDK
- Python SDK
- JavaScript SDK
Install and configure the Nebius AI Cloud CLI.
How to set an allowlist to access a Managed Kubernetes cluster
Set allowed CIDR blocks when you create or update a cluster. The CIDR blocks must follow the IPv4 format. Bits for hosts must be equal to zero. Examples of valid CIDR blocks:192.168.0.0/24where the last eight bits are allocated to hosts and equal to zero.8.8.8.64/26where the last six bits are allocated to hosts and equal to zero (64 in the decimal system is 01000000 in the binary system).
- CLI
- Terraform
- Go SDK
- Python SDK
- JavaScript SDK
Pass each CIDR block as a separate
--control-plane-endpoints-public-endpoint-allowed-cidrs parameter. To set an allowlist of CIDR blocks, do one of the following:-
Create a cluster with limited access to the public endpoint:
-
Update a cluster and restrict access to the public endpoint:
The
updatecommand overwrites the list of CIDR blocks. If you added any CIDR blocks earlier and you want to preserve them, specify these CIDR blocks in theupdatecommand.