Skip to content

Commit

Permalink
Make hostNetwork configurable for daemonset (#1716)
Browse files Browse the repository at this point in the history
* rebasing from master

* Make hostNetwork configurable for daemonset

* fixing verify-kustomize

* removing change log and chart.yaml changes
  • Loading branch information
bseenu authored Sep 22, 2023
1 parent 4963ddb commit 6f85184
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/aws-ebs-csi-driver/templates/_node.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- key: "ebs.csi.aws.com/agent-not-ready"
operator: "Exists"
{{- end }}
hostNetwork: {{ .Values.node.hostNetwork }}
{{- with .Values.node.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ node:
type: RollingUpdate
rollingUpdate:
maxUnavailable: "10%"
hostNetwork: false
# securityContext on the node pod
securityContext:
# The node pod must be run as root to bind to the registration/driver sockets
Expand Down
1 change: 1 addition & 0 deletions deploy/kubernetes/base/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
priorityClassName: system-node-critical
tolerations:
- operator: Exists
hostNetwork: false
securityContext:
fsGroup: 0
runAsGroup: 0
Expand Down

0 comments on commit 6f85184

Please sign in to comment.