You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
2.3 KiB
51 lines
2.3 KiB
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "flowise.fullname" . }}
|
|
namespace: {{ include "common.names.namespace" . | quote }}
|
|
labels:
|
|
{{- include "flowise.labels" . | nindent 4 }}
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.service.annotations .Values.commonAnnotations }}
|
|
{{- $annotations := include "common.tplvalues.merge" ( dict "values" ( list .Values.service.annotations .Values.commonAnnotations ) "context" . ) }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" $annotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.service.type }}
|
|
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
|
|
clusterIP: {{ .Values.service.clusterIP }}
|
|
{{- end }}
|
|
{{- if .Values.service.ipFamilyPolicy }}
|
|
ipFamilyPolicy: {{ .Values.service.ipFamilyPolicy }}
|
|
{{- end }}
|
|
{{- if not (empty .Values.service.ipFamilies)}}
|
|
ipFamilies: {{- toYaml .Values.service.ipFamilies | nindent 4 }}
|
|
{{- end }}
|
|
{{- if .Values.service.sessionAffinity }}
|
|
sessionAffinity: {{ .Values.service.sessionAffinity }}
|
|
{{- end }}
|
|
{{- if .Values.service.sessionAffinityConfig }}
|
|
sessionAffinityConfig: {{- include "common.tplvalues.render" (dict "value" .Values.service.sessionAffinityConfig "context" $) | nindent 4 }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerIP }}
|
|
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
|
|
{{- end }}
|
|
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
|
|
loadBalancerSourceRanges:
|
|
{{- toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort") }}
|
|
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy | quote }}
|
|
{{- end }}
|
|
ports:
|
|
- port: {{ .Values.service.ports.http }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
name: http
|
|
{{- if and (or (eq .Values.service.type "LoadBalancer") (eq .Values.service.type "NodePort")) .Values.service.nodePorts.http }}
|
|
nodePort: {{ .Values.service.nodePorts.http }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "flowise.selectorLabels" . | nindent 4 }}
|
|
|