mirror of
https://github.com/ZwareBear/JFrog-Cloud-Installers.git
synced 2026-01-21 17:06:58 -06:00
JFrog Pipelines v1.8.0 as Openshift helm and operator
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "pipelines.api.name" . }}
|
||||
labels:
|
||||
{{- include "pipelines.labels" . | nindent 4 }}
|
||||
component: {{ include "pipelines.api.name" . }}
|
||||
{{- if .Values.pipelines.api.service.annotations }}
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.pipelines.api.service.annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
spec:
|
||||
type: {{ .Values.pipelines.api.service.type }}
|
||||
{{- if .Values.pipelines.api.service.loadBalancerIP }}
|
||||
loadBalancerIP: {{ .Values.pipelines.api.service.loadBalancerIP }}
|
||||
{{- end }}
|
||||
{{- if .Values.pipelines.api.service.loadBalancerSourceRanges }}
|
||||
loadBalancerSourceRanges:
|
||||
{{ toYaml .Values.pipelines.api.service.loadBalancerSourceRanges | indent 4 }}
|
||||
{{- end }}
|
||||
ports:
|
||||
- port: {{ .Values.pipelines.api.service.port }}
|
||||
{{- if eq .Values.pipelines.api.service.type "NodePort" }}
|
||||
nodePort: 30000
|
||||
{{- end }}
|
||||
targetPort: 30000
|
||||
protocol: TCP
|
||||
name: api
|
||||
selector:
|
||||
{{- include "pipelines.selectorLabels" . | nindent 4 }}
|
||||
component: {{ include "pipelines.services.name" . }}
|
||||
Reference in New Issue
Block a user