Skip to content

Commit

Permalink
fix: allowed disabling the default service for more complex use-cases
Browse files Browse the repository at this point in the history
Quickfix for vernemq#274
  • Loading branch information
JeremyTheocharis committed Sep 29, 2021
1 parent 8c30c0a commit 4b6958d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm/vernemq/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down Expand Up @@ -82,3 +83,4 @@ spec:
selector:
app.kubernetes.io/name: {{ include "vernemq.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/vernemq/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ serviceMonitor:
labels: {}

service:
# Can be disabled if more advanced use cases require more complex setups, e.g., combining LoadBalancer and ClusterIP for internal and external access. See also issue #274.
enabled: true
# NodePort - Listen to a port on nodes and forward to the service.
# ClusterIP - Listen on the service internal to the cluster only.
# LoadBalancer - Create a LoadBalancer in the cloud provider and forward to the service.
Expand Down

0 comments on commit 4b6958d

Please sign in to comment.