> ## Documentation Index
> Fetch the complete documentation index at: https://docs.e6data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change network settings

> Which network settings of an e6data deployment on AWS can change after install, what each change affects, and how to make it.

ReferenceApplies to: CloudPrem on AWS

Most network settings can change after install: subnets, egress path, proxy, CA, endpoint type and private API. A few are fixed when the cluster is created, most importantly the Kubernetes service range. Changing those means a new cluster and moving the workspace to it.

## Requirements

* Plan fixed settings before install. They are marked "Decided at setup" on [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md).
* After any change that restricts traffic, restart the console and confirm the new pod becomes Ready. A pod that started before the change proves nothing.

## What can change, and how

| Setting | AWS | Impact |
| - | - | - |
| Kubernetes service range | Can't change. New cluster needed | New cluster, workspace moved to it |
| Pod range | VPC CNI: pods use node subnets; see custom networking below | Use custom networking to move pods to their own range |
| VPC CNI spare-address settings | Yes, add-on configuration | No downtime. Pass `--service-account-role-arn` only if the add-on has its own IAM role (IRSA) |
| Custom networking (pods in `100.64.0.0/16`) | Yes | Existing nodes must be replaced |
| Add subnets or a secondary range | Yes | Update allow-lists (below) |
| Endpoint: public to internal, or to NodePort | Change the `mergedService` annotations or type | Endpoint address changes. Update DNS |
| Load balancer source ranges | Yes, annotation | None |
| Stop using the AWS Load Balancer Controller | Yes. First delete the endpoint Service or switch it to NodePort while the controller still runs, then remove the controller | Otherwise the old load balancer and target groups are left behind |
| EKS secrets encryption with your KMS key | Can turn on, can't turn off. Can't run during another cluster update | About 25 minutes |
| EKS access mode `authenticationMode: API` | One-way (per AWS documentation) | Can't be reverted |
| Private Kubernetes API | Yes, both ways (`update-cluster-config`) | Install hosts must be inside your network |
| Egress path (NAT to firewall or Transit Gateway) | Yes, route tables | Allow e6data hosts on the new path first. Expect a short break in connections |
| Proxy settings for the console | Yes, workspace values | Console restarts |
| Customer CA for TLS inspection | Yes, update the CA secret | Console restarts |
| Subnet tags | Yes | None |
| Storage firewall, endpoints | Yes | Data access fails if the new path misses a node subnet |
| VPC, or region | Can't change | New deployment needed |

> [!WARNING]
>
> Bucket policies that require the S3 gateway endpoint return 403 on any new node subnet whose route table lacks that endpoint. Add the endpoint before nodes use the subnet.

## Steps

### Add a range (secondary range, IPAM range or new subnets)

1. Create the subnets and associate them with a route table that has the S3 gateway endpoint and your egress route.
2. Allow the new range on 443 in your VPC endpoint security groups.
3. Add it to any Kubernetes NetworkPolicy `ipBlock` that lists your VPC ranges.
4. Add it to your load balancer target security groups and your proxy's source allow-list.
5. Add it to the inspection VPC's return routes, if you use one.
6. Add the subnet tags your node provisioner selects on.

### Move to a new service range

1. Create a new EKS cluster with the new range (`kubernetesNetworkConfig.serviceIPv4CIDR`, or `--kubernetes-network-config serviceIpv4Cidr=<RANGE>`). Any private /12 to /24 that overlaps nothing pods must reach.
2. Install the operator and move the workspace to the new cluster.
3. Put the new range in the console's `NO_PROXY`, if you use a proxy.
4. Replace the old range in any NetworkPolicy `ipBlock`.

### Switch the endpoint to internal

1. Change the annotations as on [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md).
2. Wait for the new address: `kubectl -n <WORKSPACE_NAMESPACE> get svc -w`.
3. Update the workspace hostname's DNS record.

The operator can recreate the Envoy Service with new NodePorts. If you pinned NodePorts or run your own load balancer in front, re-apply the pinned ports and check your target groups after such a change.

### Change proxy or CA settings

1. Update the workspace values or the CA secret.
2. Restart the console: `kubectl -n <WORKSPACE_NAMESPACE> rollout restart deploy/e6-console`.
3. Confirm the new pod is Ready and the workspace shows **Running**.

## Preflight check

Before a change, record the current state:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
aws eks describe-cluster --name <CLUSTER> --query 'cluster.[kubernetesNetworkConfig,resourcesVpcConfig]'
```

## Verify

1. All pods in the workspace namespace are Running and Ready, including a freshly restarted console.
2. The workspace shows **Running** in the e6data console.
3. Resume a cluster, run a query, and find it in Query History.

## Troubleshooting

| Symptom | Cause | Fix |
| - | - | - |
| New nodes `NotReady` after a VPC CNI change | Add-on lost its own IAM role (only if it uses IRSA) | Re-run with `--service-account-role-arn` |
| S3 403 from new nodes | New subnet's route table lacks the S3 gateway endpoint | Add it |
| Pods can't reach VPC endpoints after adding a range | Endpoint security group lacks the range | Allow it on 443 |
| Users can't reach the workspace after the endpoint change | DNS still points at the old address | Update the record |
| Console fails only after a restart | New restriction blocks a host it needs at start | See [Proxy and TLS inspection](https://docs.e6data.com/platform/deploy/aws-cloudprem/proxy-and-tls-inspection.md) |

## Limitations

* EKS service range: can't change after cluster creation.
* Moving a deployment to another VPC or region: needs a new deployment.

## See also

* [Network requirements](https://docs.e6data.com/platform/deploy/aws-cloudprem/network-requirements.md)
* [IP address sizing](https://docs.e6data.com/platform/deploy/aws-cloudprem/ip-address-sizing.md)
* [Private-only deployment](https://docs.e6data.com/platform/deploy/aws-cloudprem/private-only-deployment.md)
* [Product and cluster upgrades](https://docs.e6data.com/platform/upgrades/product-and-cluster-upgrades.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.