Hangar/chart/templates/service-backend.yaml

19 lines
495 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "hangar.fullname" . }}-backend
labels:
{{- include "hangar.labels" . | nindent 4 }}
annotations:
service.kubernetes.io/topology-aware-hints: "auto"
spec:
type: {{ .Values.backend.service.type }}
ports:
- port: {{ .Values.backend.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "hangar.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: "backend"