This commit is contained in:
2024-05-31 16:27:15 +02:00
parent e017c91d4e
commit a55965fe13
6 changed files with 13 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ resource "kubectl_manifest" "svc_back" {
name: "${var.instance}-${var.component}-back"
labels: ${jsonencode(local.back_all_labels)}
namespace: ${var.namespace}
ownerReferences: ${jsonencode(var.install_owner)}
spec:
type: ClusterIP
ports:
@@ -93,6 +94,7 @@ resource "kubectl_manifest" "svc_front" {
name: "${var.instance}-${var.component}-front"
labels: ${jsonencode(local.front_all_labels)}
namespace: ${var.namespace}
ownerReferences: ${jsonencode(var.install_owner)}
spec:
type: ClusterIP
ports:
@@ -111,6 +113,7 @@ resource "kubectl_manifest" "svc_events" {
name: "${var.instance}-${var.component}-events"
labels: ${jsonencode(local.event_all_labels)}
namespace: ${var.namespace}
ownerReferences: ${jsonencode(var.install_owner)}
spec:
type: ClusterIP
ports:
@@ -129,6 +132,7 @@ resource "kubectl_manifest" "svc_protected" {
name: "${var.instance}-${var.component}-protected"
labels: ${jsonencode(local.protected_all_labels)}
namespace: ${var.namespace}
ownerReferences: ${jsonencode(var.install_owner)}
spec:
type: ClusterIP
ports: