From 24148eb88b1b0f1b38fcb0fd03df3c18ef9e36d8 Mon Sep 17 00:00:00 2001 From: "rajan.sharma" Date: Sat, 26 Aug 2023 16:31:38 +0530 Subject: [PATCH] Add ImagePullSecret for fluentd Signed-off-by: rajan.sharma --- charts/fluent-operator/templates/fluentd-fluentd.yaml | 3 +++ charts/fluent-operator/values.yaml | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/fluent-operator/templates/fluentd-fluentd.yaml b/charts/fluent-operator/templates/fluentd-fluentd.yaml index 9c2fa73bd..abc039f5a 100644 --- a/charts/fluent-operator/templates/fluentd-fluentd.yaml +++ b/charts/fluent-operator/templates/fluentd-fluentd.yaml @@ -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 }} diff --git a/charts/fluent-operator/values.yaml b/charts/fluent-operator/values.yaml index 5214ba735..5c90149cc 100644 --- a/charts/fluent-operator/values.yaml +++ b/charts/fluent-operator/values.yaml @@ -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/ @@ -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.