Skip to content

Commit 1a251e9

Browse files
authored
Merge pull request #185 from v-shechenkov/add-priorityclassname
feat: add priorityClassName to the deployment template
2 parents f737789 + 0f5f3f9 commit 1a251e9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

charts/cloudflare-exporter/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The following table lists the configurable parameters of the Cloudflare-exporter
2828
| `fullnameOverride` | | `""` |
2929
| `podAnnotations` | | `{}` |
3030
| `podSecurityContext` | | `{}` |
31+
| `priorityClassName` | | `""` |
3132
| `securityContext` | | `{}` |
3233
| `service.type` | | `"ClusterIP"` |
3334
| `service.port` | | `8080` |

charts/cloudflare-exporter/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ spec:
5050
- secretRef:
5151
name: {{ .Values.secretRef }}
5252
{{- end }}
53+
{{- with .Values.priorityClassName}}
54+
priorityClassName: {{ . }}
55+
{{- end}}
5356
{{- with .Values.nodeSelector }}
5457
nodeSelector:
5558
{{- toYaml . | nindent 8 }}

charts/cloudflare-exporter/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ serviceMonitor:
6565
targetLabels: []
6666
metricRelabelings: []
6767

68+
# Set priority class name https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
69+
priorityClassName: ""
70+
6871
resources: {}
6972
# We usually recommend not to specify default resources and to leave this as a conscious
7073
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)