Skip to content

Commit

Permalink
feat(helm): add support for volumes and volumeMounts
Browse files Browse the repository at this point in the history
  • Loading branch information
zbindenren committed Oct 24, 2022
1 parent f04a6f7 commit e9f5b5e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ The following command can be used to install kubenurse with Helm: `helm upgrade
| daemonset.podSecurityContext | The security context of the daemonset | {}
| daemonset.containerSecurityContext| The security context of the containers within the pods of the daemonset | {}
| daemonset.tolerations | The tolerations of the daemonset | <code>- effect: NoSchedule </br>&nbsp; key: node-role.kubernetes.io/master</br>&nbsp; operator: Equal </br>- effect: NoSchedule </br>&nbsp; key: node-role.kubernetes.io/control-plane</br>&nbsp; operator: Equal</code>
| daemonset.volumeMounts | Additional volumeMounts to be added to the pods of the daemonset | [] |
| daemonset.volumes | Additional volumes to be added to the daemonset | [] |
| namespace | The namespace where kubenurse will be deployed | kube-system |
| serviceMonitor.enabled | Adds a ServiceMonitor for use with [Prometheus-operator](https://github.com/prometheus-operator/prometheus-operator) | false
| serviceMonitor.labels | Additional labels to be added to the ServiceMonitor | {}
Expand Down
8 changes: 8 additions & 0 deletions helm/kubenurse/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,15 @@ spec:
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 1
volumeMounts:
{{- if .Values.daemonset.volumeMounts -}}
{{- toYaml .Values.daemonset.volumeMounts | nindent 8 }}
{{- end }}
tolerations:
{{- if .Values.daemonset.tolerations }}
{{- toYaml .Values.daemonset.tolerations | nindent 6 }}
{{- end }}
volumes:
{{- if .Values.daemonset.volumes -}}
{{- toYaml .Values.daemonset.volumes | nindent 6 }}
{{- end }}
2 changes: 2 additions & 0 deletions helm/kubenurse/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ daemonset:
- effect: NoSchedule
key: node-role.kubernetes.io/control-plane
operator: Equal
volumeMounts: []
volumes: []

serviceMonitor:
enabled: false
Expand Down

0 comments on commit e9f5b5e

Please sign in to comment.