infra4talos/apps-helm/samba4/templates/service.yaml

20 lines
579 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "samba4.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "samba4.name" . }}
helm.sh/chart: {{ include "samba4.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: cifs
protocol: TCP
name: cifs
selector:
app.kubernetes.io/name: {{ include "samba4.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}