Skip to content

Commit 114abea

Browse files
authored
Merge pull request #21 from NgaNaNa/feature/eks-infra
allow cluster endpoints for pub/private
2 parents 1773ccf + 60a3f77 commit 114abea

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

infra/eks/_providers.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ provider "kubernetes" {
1313
}
1414
}
1515

16-
resource "kubernetes_namespace" "app" {
17-
metadata { name = "node-api" }
18-
}
16+
# resource "kubernetes_namespace" "node-app" {
17+
# metadata { name = "node-api" }
18+
# }
1919

20-
# Kustomize, kubectl_manifest, or Helm chart can follow here for Deployment/Service/Ingress

infra/eks/cluster.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ module "eks" {
88
vpc_id = var.vpc_id
99
subnet_ids = var.app_public_subnet_ids
1010

11+
cluster_endpoint_private_access = true
12+
cluster_endpoint_public_access = true
13+
cluster_endpoint_public_access_cidrs = ["119.15.74.49/32"]
14+
15+
enable_cluster_creator_admin_permissions = true
16+
1117
# This config maps to an Auto Scaling Group under the hood
1218
eks_managed_node_groups = {
1319
default = {

0 commit comments

Comments
 (0)