File tree Expand file tree Collapse file tree 5 files changed +20
-2
lines changed
Expand file tree Collapse file tree 5 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ module "eks" {
5454 eks_version = var. eks_version
5555 aws_region = var. aws_region
5656 ebs_csi_addon_version = var. ebs_csi_addon_version
57+ kube_proxy_addon_version = var. kube_proxy_addon_version
5758 admin_role_arns = data. aws_iam_roles . admin_arn . arns
5859 subnet_ids = [
5960 module . vpc . private_subnets [0 ]. id ,
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ resource "aws_eks_addon" "aws_ebs_csi_driver" {
4444 service_account_role_arn = aws_iam_role. ebs_csi_iam_role . arn
4545}
4646
47+ resource "aws_eks_addon" "kube_proxy" {
48+ cluster_name = aws_eks_cluster. eks_cluster . name
49+ addon_name = " kube-proxy"
50+ addon_version = var. kube_proxy_addon_version
51+ }
52+
4753resource "aws_security_group" "eks_cluster_security_group" {
4854 name = " ${ replace (var. project , " " , " -" )} eks-cluster-security-group"
4955 description = " Cluster communication with worker nodes"
@@ -279,4 +285,4 @@ resource "aws_eks_access_policy_association" "admin_policy" {
279285 depends_on = [
280286 aws_eks_access_entry . admin_role
281287 ]
282- }
288+ }
Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ variable "ebs_csi_addon_version" {
3030 description = " Version of AWS EBS CRI driver to use"
3131}
3232
33+ variable "kube_proxy_addon_version" {
34+ type = string
35+ description = " Version of kube-proxy to use"
36+ }
37+
3338variable "backups_bucket" {
3439 type = string
3540 description = " S3 bucket to which backups will be performed"
@@ -38,4 +43,4 @@ variable "backups_bucket" {
3843variable "admin_role_arns" {
3944 type = set (string )
4045 description = " ARN of the Role used for admin cluster access."
41- }
46+ }
Original file line number Diff line number Diff line change @@ -241,6 +241,11 @@ variable "ebs_csi_addon_version" {
241241 description = " Version of AWS EBS CRI driver to use"
242242}
243243
244+ variable "kube_proxy_addon_version" {
245+ type = string
246+ description = " Version of kube-proxy to use"
247+ }
248+
244249variable "hibernate" {
245250 description = " If set to true, the EKS cluster will be scaled down and its services unavailable"
246251 type = bool
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ db_logs_exports = ["audit", "profiler"]
1313eks_version = " 1.30"
1414# eks_node_release_version = "1.29.0-20240202"
1515ebs_csi_addon_version = " v1.30.0-eksbuild.1"
16+ kube_proxy_addon_version = " v1.30.14-eksbuild.18"
1617# apps_node_group_min_size = 1
1718# apps_node_group_max_size = 16
1819# apps_node_group_desired_size = 3
You can’t perform that action at this time.
0 commit comments