add extraPorts support
This commit is contained in:
parent
9ac5be6ce1
commit
a984c2763f
@ -44,6 +44,15 @@ spec:
|
|||||||
- name: telnet
|
- name: telnet
|
||||||
containerPort: {{ .Values.telnetport }}
|
containerPort: {{ .Values.telnetport }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
{{- if .Values.service.extraPorts }}
|
||||||
|
{{- range $servicePort := .Values.service.extraPorts }}
|
||||||
|
- name: {{ $servicePort.name }}
|
||||||
|
containerPort: {{ $servicePort.targetPort }}
|
||||||
|
{{- if $servicePort.protocol }}
|
||||||
|
protocol: {{ $servicePort.protocol }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /fhem
|
path: /fhem
|
||||||
|
@ -25,8 +25,9 @@ spec:
|
|||||||
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http))) }}
|
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http))) }}
|
||||||
nodePort: {{ .Values.service.nodePorts.fhemweb }}
|
nodePort: {{ .Values.service.nodePorts.fhemweb }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.service.extraPorts }}
|
{{- if .Values.service.extraPorts }}
|
||||||
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
|
{{- toYaml .Values.service.extraPorts | nindent 2 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
selector:
|
selector:
|
||||||
{{- include "fhem.selectorLabels" . | nindent 4 }}
|
{{- include "fhem.selectorLabels" . | nindent 4 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user