Skip to content

Commit

Permalink
Update the log-router chart to accept custom volumes (#7)
Browse files Browse the repository at this point in the history
* Update the log-router chart to accept custom volumes

* Use plurals about volumes in the README.md
  • Loading branch information
sneko authored and jvassev committed May 9, 2018
1 parent 7bbe937 commit 24833f3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,8 @@ Flags:
| `interval` | How often to check for config changes (seconds) | `45` |
| `meta.key` | The metadata key (optional) | `""` |
| `meta.values` | Metadata to use for the key | `{}`
| `extraVolumeMounts` | Mount extra volumes, required to mount ssl certificates when elasticsearch has tls enabled | |
| `extraVolumes` | Extra volumes | |
| `fluentdResources` | Resource definitions for the fluentd container | `{}`|
| `reloaderResources` | Resource definitions for the reloader container | `{}` |
| `tolerations` | Pod tolerations | `[]` |
Expand Down
6 changes: 6 additions & 0 deletions log-router/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ spec:
- name: varlibdockercontainers
mountPath: /var/lib/docker/containers
readOnly: true
{{- if .Values.extraVolumeMounts }}
{{ toYaml .Values.extraVolumeMounts | indent 10 }}
{{- end }}
resources:
{{ toYaml .Values.fluentdResources | indent 12 }}

Expand Down Expand Up @@ -89,3 +92,6 @@ spec:
- name: varlibdockercontainers
hostPath:
path: /var/lib/docker/containers
{{- if .Values.extraVolumes }}
{{ toYaml .Values.extraVolumes | indent 6 }}
{{- end }}
10 changes: 10 additions & 0 deletions log-router/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ meta:
key: ""
values: {}

# extraVolumes:
# - name: es-certs
# secret:
# defaultMode: 420
# secretName: es-certs
# extraVolumeMounts:
# - name: es-certs
# mountPath: /certs
# readOnly: true

tolerations: []
fluentdResources: {}
reloaderResources: {}
Expand Down

0 comments on commit 24833f3

Please sign in to comment.