opengist/deploy/helm/templates/service-http.yaml

21 lines
567 B
YAML
Raw Normal View History

2024-09-03 23:05:10 +00:00
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 }}