Skip to content

Commit 2ccd464

Browse files
committed
chore: Support Hostnetwork
Signed-off-by: kahirokunn <[email protected]>
1 parent d8ee016 commit 2ccd464

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

helm/templates/deployment.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,13 @@ spec:
131131
priorityClassName: {{ .Values.deployment.priorityClassName }}
132132
{{ end -}}
133133
hostIPC: false
134-
hostNetwork: false
135134
hostPID: false
135+
{{ if .Values.hostNetwork }}
136+
hostNetwork: true
137+
dnsPolicy: ClusterFirstWithHostNet
138+
{{ else }}
139+
hostNetwork: false
140+
{{ end }}
136141
{{ if .Values.aws.credentials.secretName -}}
137142
volumes:
138143
- name: {{ .Values.aws.credentials.secretName }}

helm/values.schema.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@
5858
},
5959
"priorityClassName": {
6060
"type": "string"
61+
},
62+
"hostNetwork": {
63+
"type": "boolean"
6164
}
6265
},
6366
"required": [
@@ -198,7 +201,7 @@
198201
},
199202
"watchNamespace": {
200203
"type": "string"
201-
},
204+
},
202205
"resourceTags": {
203206
"type": "array",
204207
"items": {

helm/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ deployment:
2828
# Which priorityClassName to set?
2929
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority
3030
priorityClassName: ""
31+
hostNetwork: false
3132

3233
# If "installScope: cluster" then these labels will be applied to ClusterRole
3334
role:
3435
labels: {}
35-
36+
3637
metrics:
3738
service:
3839
# Set to true to automatically create a Kubernetes Service resource for the
@@ -60,7 +61,7 @@ aws:
6061
# Secret stringData key that contains the credentials
6162
secretKey: "credentials"
6263
# Profile used for AWS credentials
63-
profile: "default"
64+
profile: "default"
6465

6566
# log level for the controller
6667
log:

0 commit comments

Comments
 (0)