Skip to content

Commit 2c0ffdf

Browse files
authored
Add public subnets in all AZs (#292)
* Add public subnets in all AZs
1 parent 103fefb commit 2c0ffdf

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

docs/how-to-use-kit.md

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ As part of these tests, I want to capture-
109109
- latency for the API server calls is not impacted and SLO’s are not breached.
110110
- metrics for core Kubernetes components like scheduler, KCM, etcd etc.
111111

112+
> Note: Kit environment created using `kitctl` supports 64k IP addresses. In case your use case needs kitctl to support additional IPs, feel free to open a github issue.
113+
112114
## Key Terms
113115

114116
**KIT/clusters or guest clusters -** These are rapid prototyping vanilla Kubernetes clusters provisioned using using EKS-distro images. They take about 3-4 minutes to provision on ec2 nodes and less than 30 seconds to update their configurations. These clusters are provisioned by KIT-operator running in the KIT environment

substrate/cmd/kitctl/bootstrap.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -51,19 +51,19 @@ func bootstrap(cmd *cobra.Command, args []string) {
5151
start := time.Now()
5252
name := parseName(ctx, args)
5353
logging.FromContext(ctx).Infof("Bootstrapping %q", name)
54-
vpcCidrs := []string{"10.0.0.0/16", "10.1.0.0/16", "10.2.0.0/16", "10.3.0.0/16", "10.4.0.0/16"}
5554
if err := substrate.NewController(ctx).Reconcile(ctx, &v1alpha1.Substrate{
5655
ObjectMeta: metav1.ObjectMeta{Name: name},
5756

5857
Spec: v1alpha1.SubstrateSpec{
59-
VPC: &v1alpha1.VPCSpec{CIDR: vpcCidrs},
58+
VPC: &v1alpha1.VPCSpec{CIDR: []string{"10.0.0.0/16"}},
6059
InstanceType: aws.String("r6g.8xlarge"),
6160
Subnets: []*v1alpha1.SubnetSpec{
62-
{Zone: "us-west-2a", CIDR: vpcCidrs[0]},
63-
{Zone: "us-west-2b", CIDR: vpcCidrs[1]},
64-
{Zone: "us-west-2c", CIDR: vpcCidrs[2]},
65-
{Zone: "us-west-2a", CIDR: vpcCidrs[3], Public: true},
66-
{Zone: "us-west-2b", CIDR: vpcCidrs[4], Public: true},
61+
{Zone: "us-west-2a", CIDR: "10.0.1.0/24"},
62+
{Zone: "us-west-2b", CIDR: "10.0.2.0/24"},
63+
{Zone: "us-west-2c", CIDR: "10.0.3.0/24"},
64+
{Zone: "us-west-2a", CIDR: "10.0.100.0/24", Public: true},
65+
{Zone: "us-west-2b", CIDR: "10.0.101.0/24", Public: true},
66+
{Zone: "us-west-2c", CIDR: "10.0.102.0/24", Public: true},
6767
},
6868
},
6969
}); err != nil {

0 commit comments

Comments
 (0)