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
7 changes: 3 additions & 4 deletions infra/eks/_providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ provider "kubernetes" {
}
}

resource "kubernetes_namespace" "app" {
metadata { name = "node-api" }
}
# resource "kubernetes_namespace" "node-app" {
# metadata { name = "node-api" }
# }

# Kustomize, kubectl_manifest, or Helm chart can follow here for Deployment/Service/Ingress
6 changes: 6 additions & 0 deletions infra/eks/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ module "eks" {
vpc_id = var.vpc_id
subnet_ids = var.app_public_subnet_ids

cluster_endpoint_private_access = true
cluster_endpoint_public_access = true
cluster_endpoint_public_access_cidrs = ["119.15.74.49/32"]

enable_cluster_creator_admin_permissions = true

# This config maps to an Auto Scaling Group under the hood
eks_managed_node_groups = {
default = {
Expand Down