mirror of
https://github.com/truenas/charts.git
synced 2026-05-12 11:36:10 +08:00
* switch to the newly released official repo * remove --helm3 flag as it does not exist anymore * move ix-chart * create values.yaml and remove old test hook * update version scheme
21 lines
670 B
YAML
21 lines
670 B
YAML
{{- if and (.Values.portForwardingList) (eq (include "hostNetworkingConfiguration" .) "false") }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "ix-chart.fullname" . }}
|
|
labels:
|
|
{{- include "ix-chart.labels" . | nindent 4 }}
|
|
spec:
|
|
type: NodePort
|
|
ports:
|
|
{{- range $index, $config := .Values.portForwardingList }}
|
|
- port: {{ $config.containerPort }}
|
|
targetPort: {{ $config.containerPort }}
|
|
protocol: {{ $config.protocol }}
|
|
nodePort: {{ $config.nodePort }}
|
|
name: ix-{{ $.Release.Name }}-{{ $config.nodePort }}-{{ $index }}
|
|
{{- end }}
|
|
selector:
|
|
{{- include "ix-chart.selectorLabels" . | nindent 4 }}
|
|
{{- end }}
|