Skip to content
GitLab
Menu
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
apiVersion
:
v1
kind
:
Service
kind
:
Service
metadata
:
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
:
labels
:
{{
- include "Yacy.labels" . | nindent 4
}}
track
:
"
{{
.Values.application.track
}}"
{{
include "sharedlabels" . | indent 4
}}
spec
:
spec
:
type
:
NodePort
type
:
{{
.Values.service.type
}}
externalTrafficPolicy
:
Local
externalTrafficPolicy
:
{{
.Values.service.trafficpolicy
}}
ports
:
ports
:
-
port
:
{{
.Values.yacy.port
}}
-
port
:
{{
.Values.service.externalPort
}}
nodePort
:
{{
.Values.yacy.port
}}
targetPort
:
{{
.Values.service.internalPort
}}
targetPort
:
{{
.Values.yacy.port
}}
protocol
:
TCP
protocol
:
TCP
name
:
{{
.Values.service.name
}}
name
:
http
selector
:
selector
:
{{
- include "Yacy.selectorLabels" . | nindent 4
}}
app
:
{{
template "appname" .
}}
tier
:
"
{{
.Values.application.tier
}}"
track
:
"
{{
.Values.application.track
}}"
{{
- end -
}}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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