Merge pull request #700 from traum-ferienwohnungen/master
Make nodePort configurable with helm
This commit is contained in:
commit
11b26b3857
@ -14,9 +14,15 @@ spec:
|
|||||||
port: {{ .Values.service.externalApiPort }}
|
port: {{ .Values.service.externalApiPort }}
|
||||||
targetPort: {{ .Values.service.internalApiPort }}
|
targetPort: {{ .Values.service.internalApiPort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if and (.Values.service.apiNodePort) (eq .Values.service.type "NodePort") }}
|
||||||
|
nodePort: {{ .Values.service.apiNodePort }}
|
||||||
|
{{- end }}
|
||||||
- name: "{{ .Chart.Name }}-health"
|
- name: "{{ .Chart.Name }}-health"
|
||||||
port: {{ .Values.service.externalHealthPort }}
|
port: {{ .Values.service.externalHealthPort }}
|
||||||
targetPort: {{ .Values.service.internalHealthPort }}
|
targetPort: {{ .Values.service.internalHealthPort }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if and (.Values.service.healthNodePort) (eq .Values.service.type "NodePort") }}
|
||||||
|
nodePort: {{ .Values.service.healthNodePort }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
app: {{ template "clair.fullname" . }}
|
app: {{ template "clair.fullname" . }}
|
||||||
|
Loading…
Reference in New Issue
Block a user