apiVersion: v1 kind: Service metadata: name: {{ include "lowcoder.fullname" . }}-node-service labels: {{- include "lowcoder.labels" . | nindent 4 }} spec: type: {{ .Values.nodeService.service.type }} ports: - port: {{ .Values.nodeService.service.port }} targetPort: lowcoder-node protocol: TCP name: lowcoder-node {{- if .Values.nodeService.service.nodePort }} {{- if or (eq .Values.nodeService.service.type "NodePort") (eq .Values.nodeService.service.type "LoadBalancer") }} nodePort: {{ .Values.nodeService.service.nodePort }} {{- end }} {{- end }} selector: {{- include "lowcoder.selectorLabels" (dict "component" "node-service" "Values" .Values "Release" .Release "Chart" .Chart) | nindent 4 }}