Skip to content

Commit

Permalink
Fixed merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaline-0 committed Mar 27, 2024
1 parent 34e7940 commit 6b56274
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ override.tf.json

# Ignore CLI configuration files
.terraformrc
terraform.rc

db.secret
terraform.rc
12 changes: 8 additions & 4 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
resource "kubernetes_namespace" "nodexpressv2" {
resource "kubernetes_namespace" "nodexpressv3" {
metadata {
name = "nodexpressv2-namespace"
name = "nodexpressv3-namespace"
}
}

resource "kubernetes_deployment" "api-skaffold" {
metadata {
name = "test"
namespace = kubernetes_namespace.nodexpressv2.metadata.0.name
namespace = kubernetes_namespace.nodexpressv3.metadata.0.name
}
spec {
replicas = 1
Expand Down Expand Up @@ -38,7 +38,7 @@ resource "kubernetes_deployment" "api-skaffold" {
resource "kubernetes_service" "api-skaffold_service" {
metadata {
name = "test"
namespace = "kubernetes_namespace.nodexpressv2.metadata.0.name"
namespace = "kubernetes_namespace.nodexpressv3.metadata.0.name"
}
spec {
selector = {
Expand All @@ -50,4 +50,8 @@ resource "kubernetes_service" "api-skaffold_service" {
target_port = 3000
}
}
wait_for_completion = true
timeouts {
create = "40s"
}
}

0 comments on commit 6b56274

Please sign in to comment.