diff --git a/charts/flagger/templates/prometheus.yaml b/charts/flagger/templates/prometheus.yaml index 287d7f40e..beff9a539 100644 --- a/charts/flagger/templates/prometheus.yaml +++ b/charts/flagger/templates/prometheus.yaml @@ -255,7 +255,10 @@ spec: mountPath: /etc/prometheus - name: data-volume mountPath: /prometheus/data - + {{- if .Values.prometheus.pullSecret }} + imagePullSecrets: + - name: {{ .Values.prometheus.pullSecret }} + {{- end }} volumes: - name: config-volume configMap: diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index b35bb1aa6..50b28ff9a 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -125,6 +125,7 @@ prometheus: # to be used with ingress controllers install: false image: docker.io/prom/prometheus:v2.23.0 + pullSecret: retention: 2h kubeconfigQPS: ""