Skip to content

Commit

Permalink
feat: support custom cluster service CIDR (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: Max Xu <[email protected]>
  • Loading branch information
maxsxu authored May 18, 2023
1 parent 0e40064 commit e179318
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ locals {

node_group_defaults = {
create_security_group = false
ami_id = var.node_pool_ami_id
ami_id = var.node_pool_ami_id
block_device_mappings = {
xvda = {
device_name = "/dev/xvda"
Expand Down Expand Up @@ -212,7 +212,7 @@ module "eks" {
openid_connect_audiences = ["sts.amazonaws.com"]
tags = local.tags
vpc_id = var.vpc_id

cluster_service_ipv4_cidr = var.cluster_service_ipv4_cidr
}

### Additional Tags
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -605,3 +605,9 @@ variable "vpc_id" {
error_message = "The value for variable \"vpc_id\" must be a valid VPC id, starting with \"vpc-\"."
}
}

variable "cluster_service_ipv4_cidr" {
description = "The CIDR block to assign Kubernetes service IP addresses from. If you don't specify a block, Kubernetes assigns addresses from either the 10.100.0.0/16 or 172.20.0.0/16 CIDR blocks"
type = string
default = null
}

0 comments on commit e179318

Please sign in to comment.