Skip to content

Commit

Permalink
K8s service removed
Browse files Browse the repository at this point in the history
  • Loading branch information
kusumsiri committed Jul 29, 2023
1 parent 686cd16 commit d6355c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion 02-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "kubernetes_namespace" "namespace" {

resource "aws_dynamodb_table" "state_locking" {
hash_key = "LockID"
name = "terraform-state-locking"
name = "terraform-state-locking_1"
attribute {
name = "LockID"
type = "S"
Expand Down
34 changes: 17 additions & 17 deletions 05-hello_app.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ resource "kubernetes_deployment" "hello-app" {
}
}

resource "kubernetes_service" "http-svc" {
metadata {
name = var.hello_app_name
namespace = var.k8_namespace
}
spec {
selector = {
App = var.hello_app_name
}
port {
port = 80
target_port = 8080
}
# resource "kubernetes_service" "http-svc" {
# metadata {
# name = var.hello_app_name
# namespace = var.k8_namespace
# }
# spec {
# selector = {
# App = var.hello_app_name
# }
# port {
# port = 80
# target_port = 8080
# }

type = "LoadBalancer"
external_ips = var.external_ips
}
}
# type = "LoadBalancer"
# external_ips = var.external_ips
# }
# }

0 comments on commit d6355c2

Please sign in to comment.