Skip to content

Instantly share code, notes, and snippets.

@joakimhew
Last active October 15, 2021 16:31
Show Gist options
  • Save joakimhew/7aa55ce67f26c9c1af8bc33e25902688 to your computer and use it in GitHub Desktop.
Save joakimhew/7aa55ce67f26c9c1af8bc33e25902688 to your computer and use it in GitHub Desktop.
resource "helm_release" "this" {
name = "aws-vpc-cni"
namespace = "kube-system"
repository = "https://aws.github.io/eks-charts"
chart = "aws-vpc-cni"
values = [
<<EOT
crd:
create: false # CRDs were created by the EKS module
originalMatchLabels: true
eniConfig:
create: true
region: eu-west-1
subnets:
a:
id: ${aws_subnet.extra_az_1a.id}
securityGroups:
- ${module.eks.worker_security_group_id}
b:
id: ${aws_subnet.extra_az_1b.id}
securityGroups:
- ${module.eks.worker_security_group_id}
c:
id: ${aws_subnet.extra_az_1c.id}
securityGroups:
- ${module.eks.worker_security_group_id}
env:
AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG: true
ENI_CONFIG_LABEL_DEF: "failure-domain.beta.kubernetes.io/zone"
EOT
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment