spec:
type: ClusterIP
ports:
- - port: {{ .Values.ricxapp.service.http.port }}
- targetPort: http
+ {{- range .Values.containers }}
+ {{- if .ports }}
+ {{- if .ports.http }}
+ - port: {{ .ports.http }}
+ targetPort: http_{{ .name }}
protocol: TCP
- name: http
+ name: http_{{ .name }}
+ {{- end }}
+ {{- end }}
+ {{- end }}
selector:
app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
release: {{ .Release.Name }}