From 67e5d227b139a552ce9b396abe3aa37146060bb9 Mon Sep 17 00:00:00 2001 From: Nelson Vides Date: Thu, 15 Aug 2024 19:47:58 +0200 Subject: [PATCH] Make load-balancer optional --- MongooseIM/templates/mongoose-svc-lb.yaml | 2 ++ MongooseIM/values.yaml | 3 +++ 2 files changed, 5 insertions(+) diff --git a/MongooseIM/templates/mongoose-svc-lb.yaml b/MongooseIM/templates/mongoose-svc-lb.yaml index 38961c3..b368cdb 100644 --- a/MongooseIM/templates/mongoose-svc-lb.yaml +++ b/MongooseIM/templates/mongoose-svc-lb.yaml @@ -1,3 +1,4 @@ +{{ if .Values.loadbalancer.enabled }} apiVersion: v1 kind: Service metadata: @@ -44,3 +45,4 @@ spec: {{- if .Values.LoadBalancerIP }} loadBalancerIP: {{ .Values.loadBalancerIP }} {{- end }} +{{ end }} diff --git a/MongooseIM/values.yaml b/MongooseIM/values.yaml index e196d3a..b4b80d4 100644 --- a/MongooseIM/values.yaml +++ b/MongooseIM/values.yaml @@ -52,6 +52,9 @@ affinity: {} loadBalancerIP: "" loadBalancerAnnotations: {} +loadbalancer: + enabled: true + nodeport: enabled: false