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: diff --git a/pkg/generated/presets.go b/pkg/generated/presets.go index d41a3cb..197fb47 100644 --- a/pkg/generated/presets.go +++ b/pkg/generated/presets.go @@ -69,10 +69,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: