Skip to content

Commit

Permalink
Set pod CIDR range (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
AverageMarcus authored Jul 26, 2022
1 parent f4bb7f3 commit 317f7a0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Set pod CIDR to 100.64.0.0/12 to match what we set in Cilium (and to not clash with AWS CIDR)

## [0.4.2] - 2022-07-25

### Changed
Expand Down
3 changes: 3 additions & 0 deletions helm/cluster-aws/templates/_cluster.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ metadata:
name: {{ include "resource.default.name" $ }}
namespace: {{ .Release.Namespace }}
spec:
clusterNetwork:
pods:
cidrBlocks: {{ .Values.network.podCIDR }}
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KubeadmControlPlane
Expand Down
2 changes: 2 additions & 0 deletions helm/cluster-aws/templates/_control_plane.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ spec:
extraArgs:
bind-address: 0.0.0.0
cloud-provider: aws
allocate-node-cidrs: true
cluster-cidr: {{ .Values.network.podCIDR }}
scheduler:
extraArgs:
bind-address: 0.0.0.0
Expand Down
3 changes: 3 additions & 0 deletions helm/cluster-aws/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
"availabilityZoneUsageLimit": {
"type": "integer"
},
"podCIDR": {
"type": "string"
},
"serviceCIDR": {
"type": "string"
},
Expand Down
1 change: 1 addition & 0 deletions helm/cluster-aws/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ network:
availabilityZoneUsageLimit: 3 # amount of AZ that should be used for the machines
vpcCIDR: 10.0.0.0/16 # cidr range for the VPC
serviceCIDR: 172.31.0.0/16
podCIDR: 100.64.0.0/12

bastion:
enabled: true
Expand Down

0 comments on commit 317f7a0

Please sign in to comment.