Skip to content

Commit

Permalink
Merge pull request #939 from andyzhangx/hostNetwork
Browse files Browse the repository at this point in the history
feat: customize hostNetwork setting in helm install
  • Loading branch information
k8s-ci-robot authored Jul 16, 2021
2 parents c8f7537 + 8ef83c9 commit 2911104
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ The following table lists the configurable parameters of the latest Azure Disk C
| `controller.runOnMaster` | run csi-azuredisk-controller on master node | `false` |
| `controller.logLevel` | controller driver log level |`5` |
| `controller.tolerations` | controller pod tolerations | |
| `controller.hostNetwork` | `hostNetwork` setting on controller driver(could be disabled if controller does not depend on MSI setting) | `true` | `true`, `false`
| `node.metricsPort` | metrics port of csi-azuredisk-node |`29605` |
| `node.livenessProbe.healthPort ` | health check port for liveness probe | `29603` |
| `node.logLevel` | node driver log level |`5` |
Expand All @@ -105,6 +106,7 @@ The following table lists the configurable parameters of the latest Azure Disk C
| `linux.kubelet` | configure kubelet directory path on Linux agent node | `/var/lib/kubelet` |
| `linux.distro` | configure ssl certificates for different Linux distribution(available values: `debian`, `fedora`) | `debian` |
| `linux.tolerations` | linux node driver tolerations | |
| `linux.hostNetwork` | `hostNetwork` setting on linux node driver(could be disabled if perfProfile is `none`) | `true` | `true`, `false`
| `windows.enabled` | whether enable windows feature | `true` |
| `windows.dsName` | name of driver daemonset on windows |`csi-azuredisk-node-win` |
| `windows.kubelet` | configure kubelet directory path on Windows agent node | `'C:\var\lib\kubelet'` |
Expand Down
Binary file modified charts/latest/azuredisk-csi-driver-v1.5.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true
hostNetwork: {{ .Values.controller.hostNetwork }}
serviceAccountName: {{ .Values.serviceAccount.controller }}
nodeSelector:
kubernetes.io/os: linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
imagePullSecrets:
{{ toYaml .Values.imagePullSecrets | indent 8 }}
{{- end }}
hostNetwork: true
hostNetwork: {{ .Values.linux.hostNetwork }}
dnsPolicy: ClusterFirstWithHostNet
serviceAccountName: {{ .Values.serviceAccount.node }}
nodeSelector:
Expand Down
2 changes: 2 additions & 0 deletions charts/latest/azuredisk-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ controller:
- key: "node-role.kubernetes.io/controlplane"
operator: "Exists"
effect: "NoSchedule"
hostNetwork: true # this setting could be disabled if controller does not depend on MSI setting
podLabels: {}

node:
Expand Down Expand Up @@ -95,6 +96,7 @@ linux:
enablePerfOptimization: true
tolerations:
- operator: "Exists"
hostNetwork: true # this setting could be disabled if perfProfile is `none`
podLabels: {}

windows:
Expand Down

0 comments on commit 2911104

Please sign in to comment.