Skip to content

Commit

Permalink
Merge pull request #177 from unmerkbar/feat/priorityclass
Browse files Browse the repository at this point in the history
Feat: Add priorityclass for uptime-kuma helm chart
  • Loading branch information
dirsigler authored Sep 24, 2024
2 parents 0dad79c + 280827e commit 1e70146
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/uptime-kuma/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ name: uptime-kuma
sources:
- https://github.com/louislam/uptime-kuma
type: application
version: 2.19.4
version: 2.20.0
1 change: 1 addition & 0 deletions charts/uptime-kuma/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ A self-hosted Monitoring tool like "Uptime-Robot".
| podEnv[0].value | string | `"3001"` | |
| podLabels | object | `{}` | |
| podSecurityContext | object | `{}` | |
| priorityClassName | string | `""` | Use this option to set custom PriorityClass to the created deployment |
| readinessProbe.enabled | bool | `true` | |
| readinessProbe.exec.command | list | `[]` | |
| readinessProbe.failureThreshold | int | `3` | |
Expand Down
3 changes: 3 additions & 0 deletions charts/uptime-kuma/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ spec:
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
3 changes: 3 additions & 0 deletions charts/uptime-kuma/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ spec:
dnsConfig:
{{- toYaml .Values.dnsConfig | nindent 8 }}
{{- end }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down
4 changes: 4 additions & 0 deletions charts/uptime-kuma/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,3 +203,7 @@ dnsPolicy: ""

# -- Use this option to set custom DNS configurations to the created deployment
dnsConfig: {}

# -- Use this option to set custom PriorityClass to the created deployment
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""

0 comments on commit 1e70146

Please sign in to comment.