mirror of
https://github.com/shadoll/helm-charts.git
synced 2026-08-28 19:43:12 +00:00
18 lines
512 B
YAML
18 lines
512 B
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "mariadb.fullname" . }}
|
|
labels:
|
|
{{- include "mariadb.labels" . | nindent 4 }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
selector:
|
|
{{- include "mariadb.selectorLabels" . | nindent 4 }}
|
|
ports:
|
|
- port: {{ .Values.service.port }}
|
|
targetPort: {{ .Values.service.port }}
|
|
protocol: TCP
|
|
{{- if and (eq .Values.service.type "NodePort") .Values.service.nodePort }}
|
|
nodePort: {{ .Values.service.nodePort }}
|
|
{{- end }}
|