Skip to content

Commit

Permalink
Update main.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
kachawla authored Sep 13, 2023
1 parent 6c6ea1c commit c182339
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "random_uuid" "name" {

resource "kubernetes_deployment" "redis" {
metadata {
name = "${random_uuid.name.result}-redis"
name = "redis-${random_uuid.name.result}"
namespace = var.context.runtime.kubernetes.namespace
labels = {
app = "redis"
Expand Down Expand Up @@ -50,7 +50,7 @@ resource "kubernetes_deployment" "redis" {

resource "kubernetes_service" "redis" {
metadata {
name = "${random_uuid.name.result}-redis"
name = "redis-${random_uuid.name.result}"
namespace = var.context.runtime.kubernetes.namespace
}

Expand Down

0 comments on commit c182339

Please sign in to comment.