Commit 2ecd3295 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

modified deployment

parent d8921d83
{{- if .Values.service.enabled -}}
apiVersion: v1
kind: Service
metadata:
name: {{ include "Yacy.name" . }}
name: {{ template "fullname" . }}
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:
{{- include "Yacy.labels" . | nindent 4 }}
track: "{{ .Values.application.track }}"
{{ include "sharedlabels" . | indent 4 }}
spec:
type: NodePort
externalTrafficPolicy: Local
type: {{ .Values.service.type }}
externalTrafficPolicy: {{ .Values.service.trafficpolicy }}
ports:
- port: {{ .Values.yacy.port }}
nodePort: {{ .Values.yacy.port }}
targetPort: {{ .Values.yacy.port }}
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
protocol: TCP
name: http
name: {{ .Values.service.name }}
selector:
{{- include "Yacy.selectorLabels" . | nindent 4 }}
app: {{ template "appname" . }}
tier: "{{ .Values.application.tier }}"
track: "{{ .Values.application.track }}"
{{- end -}}
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