mirror of
https://github.com/thomiceli/opengist.git
synced 2024-12-25 21:32:40 +00:00
20 lines
567 B
YAML
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 }}
|