Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions infrastructure/eks_cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ module "eks" {
| <a name="input_eks_access_entries"></a> [eks\_access\_entries](#input\_eks\_access\_entries) | Map of EKS Access Entries | `map(any)` | `{}` | no |
| <a name="input_enable_private_zone"></a> [enable\_private\_zone](#input\_enable\_private\_zone) | Enable Private Route53 Zone | `bool` | `false` | no |
| <a name="input_environment"></a> [environment](#input\_environment) | (Required) Environment e.g Dev, Stg, Prod | `string` | n/a | yes |
| <a name="input_karpenter_namespace"></a> [karpenter\_namespace](#input\_karpenter\_namespace) | Namespace for Pod Identity Mapping | `string` | `"karpenter"` | no |
| <a name="input_karpenter_service_account"></a> [karpenter\_service\_account](#input\_karpenter\_service\_account) | Service Account for Pod Identity Mapping | `string` | `"karpenter"` | no |
| <a name="input_kms_key_rotation_days"></a> [kms\_key\_rotation\_days](#input\_kms\_key\_rotation\_days) | Number of days to rotate the KMS key for EKS managed node group volume encryption | `number` | `365` | no |
| <a name="input_node_groups_attributes"></a> [node\_groups\_attributes](#input\_node\_groups\_attributes) | Node Group Properties. Used to Provision EKS node groups | `map(any)` | n/a | yes |
| <a name="input_node_security_group_additional_rules"></a> [node\_security\_group\_additional\_rules](#input\_node\_security\_group\_additional\_rules) | Additional Rules for Node Security Group | `map(any)` | `{}` | no |
Expand Down
2 changes: 2 additions & 0 deletions infrastructure/eks_cluster/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@ module "karpenter" {
create_pod_identity_association = true
create_instance_profile = false
create_access_entry = true
namespace = var.karpenter_namespace
service_account = var.karpenter_service_account
node_iam_role_additional_policies = merge({
AmazonSSMManagedInstanceCore = "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore"
}, var.additional_cluster_policies)
Expand Down
12 changes: 12 additions & 0 deletions infrastructure/eks_cluster/variable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,15 @@ variable "kms_key_rotation_days" {
description = "Number of days to rotate the KMS key for EKS managed node group volume encryption"
default = 365
}

variable "karpenter_namespace" {
type = string
description = "Namespace for Pod Identity Mapping"
default = "karpenter"
}

variable "karpenter_service_account" {
type = string
description = "Service Account for Pod Identity Mapping"
default = "karpenter"
}