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