How to set an allowlist to access a Managed Kubernetes cluster
Set allowed CIDR blocks when you create or update a cluster. Pass over each CIDR block as a separate--control-plane-endpoints-public-endpoint-allowed-cidrs parameter.
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).
-
Create a cluster with limited access to the public endpoint:
-
Update a cluster and restrict access to the public endpoint:
The
updatecommand overwrites a list of CIDR blocks. If you added any CIDR blocks earlier and you want to preserve them, specify these CIDR blocks in theupdatecommand.