Commit fee3de39 authored by Waqar Ahmed's avatar Waqar Ahmed

Add support for host networking and host paths

parent 937a26e4
...@@ -293,6 +293,35 @@ questions: ...@@ -293,6 +293,35 @@ questions:
schema: schema:
type: string type: string
- variable: hostNetwork
label: "Provide access to node network namespace for the workload"
group: "Networking"
schema:
type: boolean
default: false
- variable: hostPortsList
label: "Specify host ports for the workload"
description: "Only use host ports if scaling of a workload is not required"
schema:
type: list
items:
- variable: hostPortConfiguration
label: "Host Port Configuration"
schema:
type: dict
attrs:
- variable: containerPort
label: "Container Port"
schema:
type: string
required: true
- variable: hostPort
label: "Host Port"
schema:
type: string
required: true
- variable: portForwardingList - variable: portForwardingList
label: "Specify Node ports to forward to workload" label: "Specify Node ports to forward to workload"
group: "Networking" group: "Networking"
......
...@@ -53,11 +53,15 @@ livenessProbe: ...@@ -53,11 +53,15 @@ livenessProbe:
Container Ports Container Ports
*/}} */}}
{{- define "containerPorts" }} {{- define "containerPorts" }}
{{- if .Values.portForwardingList }} {{- if or .Values.portForwardingList .Values.hostPortsList }}
ports: ports:
{{- range $index, $config := .Values.portForwardingList }} {{- range $index, $config := .Values.portForwardingList }}
- containerPort: {{ $config.containerPort }} - containerPort: {{ $config.containerPort }}
{{- end }} {{- end }}
{{- range $index, $config := .Values.hostPortsList }}
- containerPort: {{ $config.containerPort }}
hostPort: {{ $config.hostPort }}
{{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment