Add support for host networking and host paths

This commit is contained in:
Waqar Ahmed committed 2020-11-06 01:55:59 +05:00
1 parent 937a26e43b
commit fee3de3979
2 files changed
+34 -1

No files matched your search

@@ -53,11 +53,15 @@ livenessProbe:
Container Ports
*/}}
{{- define "containerPorts" }}
{{- if .Values.portForwardingList }}
{{- if or .Values.portForwardingList .Values.hostPortsList }}
ports:
{{- range $index, $config := .Values.portForwardingList }}
- containerPort: {{ $config.containerPort }}
{{- end }}
{{- range $index, $config := .Values.hostPortsList }}
- containerPort: {{ $config.containerPort }}
hostPort: {{ $config.hostPort }}
{{- end }}
{{- end }}
{{- end }}