All checks were successful
Build Helm Chart / helm-package (push) Successful in 7s
27 lines
629 B
YAML
27 lines
629 B
YAML
{{- if .Values.nodeport.enabled }}
|
|
{{- $np_svc := .Values.nodeport }}
|
|
{{- range .Values.service.acceptors }}
|
|
{{- if eq .name $np_svc.service }}
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
application: {{ $.Values.application.name }}
|
|
name: {{ $.Values.application.name }}-nodeport-svc
|
|
spec:
|
|
ports:
|
|
- name: {{ quote .name }}
|
|
port: {{ .port }}
|
|
protocol: {{ quote .protocol }}
|
|
targetPort: {{ .port }}
|
|
nodePort: {{ $np_svc.port }}
|
|
publishNotReadyAddresses: true
|
|
selector:
|
|
application: {{ $.Values.application.name }}
|
|
sessionAffinity: None
|
|
type: NodePort
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|