Commit 0365e4c3 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added service for loadbalancing between nodes

parent 0b90201e
Pipeline #5587 failed with stage
in 20 seconds
......@@ -31,3 +31,36 @@ spec:
tier: "{{ .Values.application.tier }}"
track: "{{ .Values.application.track }}"
{{- end -}}
---
{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}-search
annotations:
{{- if .Values.service.annotations }}
{{ toYaml .Values.service.annotations | indent 4 }}
{{- end }}
{{- if .Values.prometheus.metrics }}
prometheus.io/scrape: "true"
prometheus.io/port: "{{ .Values.service.internalPort }}"
{{- end }}
labels:
track: "{{ .Values.application.track }}"
{{ include "sharedlabels" . | indent 4 }}
spec:
type: ClusterIP
ports:
- port: {{ .Values.yacy.port }}
targetPort: {{ .Values.yacy.port }}
protocol: TCP
name: http
- port: {{ .Values.yacy.sslport }}
targetPort: {{ .Values.yacy.sslport }}
protocol: TCP
name: https
selector:
app: {{ template "appname" . }}
tier: "{{ .Values.application.tier }}"
track: "{{ .Values.application.track }}"
{{- end -}}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment