Hangar/chart/templates/service-frontend.yaml

21 lines
559 B
YAML
Raw Normal View History

apiVersion: v1
kind: Service
metadata:
name: {{ include "hangar.fullname" . }}-frontend
labels:
{{- include "hangar.labels" . | nindent 4 }}
spec:
type: {{ .Values.frontend.service.type }}
ports:
- port: {{ .Values.frontend.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "hangar.selectorLabels" . | nindent 4 }}
app.kubernetes.io/component: "frontend"
2023-01-06 02:58:21 +08:00
topologyKeys:
- "kubernetes.io/hostname"
- "topology.kubernetes.io/zone"
- "topology.kubernetes.io/region"
- "*"