Skip to content

Commit

Permalink
fix(metabase): add service template (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina authored Jan 9, 2025
1 parent 836b596 commit 1626521
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions stable/metabase/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "metabase.fullname" . }}
namespace: {{ .Release.Namespace }}
labels:
{{- if .Values.labels }}
{{ toYaml .Values.labels | trim | indent 4 }}
{{- end }}
{{- if .Values.service.annotations }}
run: {{ .Release.Name }}
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.loadBalancerSourceRanges}}
loadBalancerSourceRanges:
{{toYaml .Values.service.loadBalancerSourceRanges | indent 4 }}
{{- end}}
ports:
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
{{- if .Values.service.nodePort }}
nodePort: {{ .Values.service.nodePort }}
{{- end}}
protocol: TCP
name: {{ template "metabase.name" . }}
selector:
run: {{ .Release.Name }}

0 comments on commit 1626521

Please sign in to comment.