Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
YaCy
Commits
2ecd3295
Commit
2ecd3295
authored
Jul 13, 2021
by
Dominik Hebeler
Browse files
modified deployment
parent
d8921d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
yacy/templates/service.yaml
View file @
2ecd3295
{{
- 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
}}
protocol
:
TCP
name
:
http
-
port
:
{{
.Values.service.externalPort
}}
targetPort
:
{{
.Values.service.internalPort
}}
protocol
:
TCP
name
:
{{
.Values.service.name
}}
selector
:
{{
- include "Yacy.selectorLabels" . | nindent 4
}}
app
:
{{
template "appname" .
}}
tier
:
"
{{
.Values.application.tier
}}"
track
:
"
{{
.Values.application.track
}}"
{{
- end -
}}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment