opengist/deploy/helm/templates/service-http.yaml
2024-09-05 01:23:55 +02:00

20 lines
567 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "opengist.fullname" . }}-http
labels:
{{- include "opengist.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.serviceHttp.annotations | nindent 4 }}
spec:
type: {{ .Values.serviceHttp.type }}
ports:
- port: {{ .Values.serviceHttp.port }}
targetPort: http
protocol: TCP
name: http
{{- if .Values.serviceHttp.nodePort }}
nodePort: {{ .Values.serviceHttp.nodePort }}
{{- end }}
selector:
{{- include "opengist.selectorLabels" . | nindent 4 }}