golang-app-template/helm/templates/service.yaml

16 lines
398 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "golang-app-template.fullname" . }}
labels:
{{- include "golang-app-template.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.app.http.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "golang-app-template.selectorLabels" . | nindent 4 }}