Skip to content

Commit

Permalink
[fluentd-elasticsearch] Support for securityContext (#106)
Browse files Browse the repository at this point in the history
* Added ability to specify securityContext

Signed-off-by: Nick Zolotarov <[email protected]>

* Update README.md

Signed-off-by: Nick Zolotarov <[email protected]>

* [fluentd-elasticsearch] Added ability to specify securityContext (#93) - version bump

Signed-off-by: Nick Zolotarov <[email protected]>

Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
nzolot and monotek authored Apr 20, 2022
1 parent 7b0969a commit 33e79ee
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fluentd-elasticsearch
version: 13.4.0
version: 13.5.0
appVersion: 4.0.0
type: application
home: https://www.fluentd.org/
Expand Down
1 change: 1 addition & 0 deletions charts/fluentd-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `affinity` | Optional daemonset affinity | `{}` |
| `annotations` | Optional daemonset annotations | `NULL` |
| `podAnnotations` | Optional daemonset's pods annotations | `NULL` |
| `securityContext` | Optional a security context for a Pod | `{}` |
| `configMaps.useDefaults.systemConf` | Use default system.conf | `true` |
| `configMaps.useDefaults.containersInputConf` | Use default containers.input.conf | `true` |
| `configMaps.useDefaults.containersKeepTimeKey` | Keep the container log timestamp as part of the log data. | `false` |
Expand Down
4 changes: 4 additions & 0 deletions charts/fluentd-elasticsearch/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ spec:
- name: {{ . }}
{{- end }}
{{- end }}
{{- if .Values.securityContext }}
securityContext:
{{ toYaml .Values.securityContext | indent 8 }}
{{- end }}
containers:
- name: {{ include "fluentd-elasticsearch.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/fluentd-elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,10 @@ podAnnotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/port: "24231"

securityContext: {}
# seLinuxOptions:
# type: spc_t

## DaemonSet update strategy
## Ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/
updateStrategy:
Expand Down

0 comments on commit 33e79ee

Please sign in to comment.