Skip to content

Commit

Permalink
add imagePullSecrets (#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangphuocbk authored Aug 7, 2024
1 parent c40ba54 commit c8e50b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ helm upgrade --install my-deployment k8s-ephemeral-storage-metrics/k8s-ephemeral
| image.imagePullPolicy | string | `"IfNotPresent"` | |
| image.repository | string | `"ghcr.io/jmcgrath207/k8s-ephemeral-storage-metrics"` | |
| image.tag | string | `"1.12.0"` | |
| image.imagePullSecrets | list | `[]` | |
| interval | int | `15` | Polling node rate for exporter |
| kubelet | object | `{"insecure":false,"readOnlyPort":0,"scrape":false}` | Scrape metrics through kubelet instead of kube api |
| log_level | string | `"info"` | |
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/DeployType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.image.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: metrics
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ image:
repository: ghcr.io/jmcgrath207/k8s-ephemeral-storage-metrics
tag: 1.12.0
imagePullPolicy: IfNotPresent
imagePullSecrets: []

# -- Configure the Service Monitor
serviceMonitor:
Expand Down

0 comments on commit c8e50b7

Please sign in to comment.