From eb250c784e517523293c3b6d51f7f3490780a223 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..7696a80 100644 --- a/charts/cozystack/templates/_helpers.tpl +++ b/charts/cozystack/templates/_helpers.tpl @@ -39,10 +39,10 @@ machine: routes: - network: 0.0.0.0/0 gateway: {{ include "talm.discovered.default_gateway" . }} - {{- with .Values.floatingIP }} + {{- if eq .MachineType "controlplane" }}{{ with .Values.floatingIP }} vip: ip: {{ . }} - {{- end }} + {{- end }}{{ end }} cluster: