personal-charts/charts/vp-web/1.0.0/templates/service.yaml
2022-01-12 19:36:42 +01:00

31 lines
708 B
YAML

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