diff --git a/docs/cluster_spec.md b/docs/cluster_spec.md index 00b2b158ca..f306b1e68b 100644 --- a/docs/cluster_spec.md +++ b/docs/cluster_spec.md @@ -351,6 +351,25 @@ spec: zone: us-east-1a ``` +### additionalRoutes + +{{ kops_feature_table(kops_added_default='1.24') }} + +Add routes in the route tables of the subnet. Targets of routes can be an instance, a peering connection, a NAT gateway, a transit gateway, an internet gateway or an egress-only internet gateway. +Currently, only AWS is supported. + +```yaml +spec: + subnets: + - cidr: 10.20.64.0/21 + name: us-east-1a + type: Private + zone: us-east-1a + additionalRoutes: + - cidr: 10.21.0.0/16 + target: vpc-abcdef +``` + ## kubeAPIServer This block contains configuration for the `kube-apiserver`. @@ -1459,4 +1478,4 @@ spec: ] ``` -To configure Pods to assume the given IAM roles, enable the [Pod Identity Webhook](/addons/#pod-identity-webhook). Without this webhook, you need to modify your Pod specs yourself for your Pod to assume the defined roles. \ No newline at end of file +To configure Pods to assume the given IAM roles, enable the [Pod Identity Webhook](/addons/#pod-identity-webhook). Without this webhook, you need to modify your Pod specs yourself for your Pod to assume the defined roles.