helm_website/templates/service.yaml

17 lines
349 B
YAML
Raw Normal View History

2024-11-14 08:13:40 +01:00
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
labels:
{{- include "basic-app.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 80
protocol: TCP
name: http
selector:
{{- include "basic-app.selectorLabels" . | nindent 4 }}