Skip to content

Commit

Permalink
Add ImagePullSecret for fluentd
Browse files Browse the repository at this point in the history
Signed-off-by: rajan.sharma <rajan.sharma@razorpay.com>
  • Loading branch information
Rajan-226 committed Aug 26, 2023
1 parent 0266c2f commit 24148eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions charts/fluent-operator/templates/fluentd-fluentd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ spec:
port: {{ .Values.fluentd.port }}
replicas: {{ .Values.fluentd.replicas }}
image: {{ .Values.fluentd.image.repository }}:{{ .Values.fluentd.image.tag }}
{{- if .Values.fluentd.imagePullSecrets }}
imagePullSecrets:
{{ toYaml .Values.fluentd.imagePullSecrets | indent 4 }}
mode: {{ .Values.fluentd.mode }}
resources:
{{- toYaml .Values.fluentd.resources | nindent 4 }}
Expand Down
6 changes: 5 additions & 1 deletion charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fluentbit:
# - name: "image-pull-secret"
secrets: []
# fluent-bit daemonset use host network
hostNetwork: false
hostNetwork: false
# Pod security context for Fluent Bit pods. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# Security context for Fluent Bit container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
Expand Down Expand Up @@ -355,6 +355,10 @@ fluentd:
cpu: 100m
memory: 128Mi
schedulerName: ""
## Reference to one or more secrets to be used when pulling images
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# - name: "image-pull-secret"
logLevel: ""
extras: {}
# Configure the output plugin parameter in Fluentd.
Expand Down

0 comments on commit 24148eb

Please sign in to comment.