Skip to content

Commit

Permalink
[aws-for-fluent-bit] Allow to add annotations to the pod
Browse files Browse the repository at this point in the history
This commit enables chart users to add annotations to the aws-for-fluent-bit pod. In practice, this eg allows to run the pod with kube2iam.
  • Loading branch information
iamakulov committed Jan 14, 2021
1 parent c145468 commit 3c20a47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions stable/aws-for-fluent-bit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,4 @@ helm delete aws-for-fluent-bit --namespace kube-system
| `affinity` | Map of node/pod affinities | `{}` |
| `tolerations` | Optional deployment tolerations | `[]` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
| `annotations` | Optional pod annotations | `{}` |
4 changes: 4 additions & 0 deletions stable/aws-for-fluent-bit/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
{{- include "aws-for-fluent-bit.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- if .Values.annotations }}
annotations:
{{- toYaml .Values.annotations | nindent 8 }}
{{- end }}
labels:
{{- include "aws-for-fluent-bit.selectorLabels" . | nindent 8 }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions stable/aws-for-fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,6 @@ nodeSelector: {}
tolerations: []

affinity: {}

annotations: {}
# iam.amazonaws.com/role: arn:aws:iam::123456789012:role/role-for-fluent-bit

0 comments on commit 3c20a47

Please sign in to comment.