For administrators

Disabling VPN-only access

2min

Enable public EKS cluster access

This instructions are usually needed only when you're about to destroy the cluster, to make sure that destroyed VPN resource for the cluster does not intrrupt cluster deletion process due to lost connection.

Open main.tf and scroll down to the section with cluster you want to enable public access to. Within the cluster section find cluster endpoing access control variables:

module "cluster_dragon" { # ... other variables cluster_endpoint_public_access = false #cluster_endpoint_public_access = true #cluster_endpoint_public_access_cidrs = ["0.0.0.0/0"] # ... other variables }

Comment out the cluster_endpoint_public_access = false line. Uncomment the cluster_endpoint_public_access = true and cluster_endpoint_public_access_cidrs = ["0.0.0.0/0"] lines.

While making sure you still have an active VPN connection perform tofu apply command. Once changes are applied successfully, you can disconnect from VPN and still be able to perform operations with the hosting infrastructure.

You can perform the same action manually, if you go to the EKS cluster, switch to the "Networking" tab and change "API server endpoint access" value to Public.