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 <[email protected]>
  • Loading branch information
Rajan-226 committed Aug 27, 2023
1 parent 0266c2f commit 0b998ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 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,10 @@ 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 }}
{{- end }}
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 0b998ed

Please sign in to comment.