mirror of
https://github.com/truenas/charts.git
synced 2026-11-30 07:36:59 +00:00
Add support for host networking and host paths
This commit is contained in:
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 }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user