From e892899756b7ae002ab24db0946e2885dd9ebaed Mon Sep 17 00:00:00 2001 From: Kingdon Barrett Date: Sun, 2 Jun 2024 22:52:37 -0400 Subject: [PATCH] Only set vip for controlplane nodes Signed-off-by: Kingdon Barrett --- charts/cozystack/templates/_helpers.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/cozystack/templates/_helpers.tpl b/charts/cozystack/templates/_helpers.tpl index 332861c..98a473f 100644 --- a/charts/cozystack/templates/_helpers.tpl +++ b/charts/cozystack/templates/_helpers.tpl @@ -39,9 +39,9 @@ machine: routes: - network: 0.0.0.0/0 gateway: {{ include "talm.discovered.default_gateway" . }} - {{- with .Values.floatingIP }} + {{- with .Values.floatingIP }}{{ if eq .MachineType "controlplane" }} vip: - ip: {{ . }} + ip: {{ . }}{{ end }} {{- end }}