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
c34d761f
Commit
c34d761f
authored
Jul 13, 2021
by
Dominik Hebeler
Browse files
fixed service
parent
c19c1740
Pipeline
#5589
passed with stage
in 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
yacy/templates/searchservice.yaml
0 → 100644
View file @
c34d761f
{{
- 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
yacy/templates/service.yaml
View file @
c34d761f
...
...
@@ -30,37 +30,4 @@ spec:
app
:
{{
template "appname" .
}}
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
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