diff --git a/charts/uptime-kuma/Chart.yaml b/charts/uptime-kuma/Chart.yaml index 56721a9..4b5c3bf 100644 --- a/charts/uptime-kuma/Chart.yaml +++ b/charts/uptime-kuma/Chart.yaml @@ -11,4 +11,4 @@ name: uptime-kuma sources: - https://github.com/louislam/uptime-kuma type: application -version: 2.19.4 +version: 2.20.0 diff --git a/charts/uptime-kuma/README.md b/charts/uptime-kuma/README.md index 9456794..018cc74 100644 --- a/charts/uptime-kuma/README.md +++ b/charts/uptime-kuma/README.md @@ -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` | | diff --git a/charts/uptime-kuma/templates/deployment.yaml b/charts/uptime-kuma/templates/deployment.yaml index 3157101..aa990c9 100644 --- a/charts/uptime-kuma/templates/deployment.yaml +++ b/charts/uptime-kuma/templates/deployment.yaml @@ -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: diff --git a/charts/uptime-kuma/templates/statefulset.yaml b/charts/uptime-kuma/templates/statefulset.yaml index efb6d7d..5bf1a5b 100644 --- a/charts/uptime-kuma/templates/statefulset.yaml +++ b/charts/uptime-kuma/templates/statefulset.yaml @@ -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: diff --git a/charts/uptime-kuma/values.yaml b/charts/uptime-kuma/values.yaml index 0c5c830..1aa1acd 100644 --- a/charts/uptime-kuma/values.yaml +++ b/charts/uptime-kuma/values.yaml @@ -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: ""