From c1823399673ea4d9c76863d268626b7fb4468ddd Mon Sep 17 00:00:00 2001 From: Karishma Chawla Date: Tue, 12 Sep 2023 18:56:12 -0700 Subject: [PATCH] Update main.tf --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index c9f1a7f..2fab083 100644 --- a/main.tf +++ b/main.tf @@ -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" @@ -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 }