Skip to content

Commit

Permalink
add PriorityClass
Browse files Browse the repository at this point in the history
  • Loading branch information
devops-mher authored Jan 22, 2025
1 parent 71d673d commit 031e73a
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/backend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: backend
description: Helm chart scaffolding for Backend applications.
type: application
version: 3.6.13
version: 3.6.14
appVersion: 1.3.0
6 changes: 6 additions & 0 deletions charts/backend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ spec:
- name: php-fpm
containerPort: 9000
protocol: TCP
{{- if .Values.app.PriorityClass }}
priorityClassName: {{ .Values.app.PriorityClass }}
{{- end }}
{{- if .Values.app.healthcheck.enabled }}
readinessProbe:
tcpSocket:
Expand Down Expand Up @@ -178,6 +181,9 @@ spec:
- name: http2
containerPort: 8080
protocol: TCP
{{- if .Values.nginx.PriorityClass }}
priorityClassName: {{ .Values.nginx.PriorityClass }}
{{- end }}
{{- if .Values.nginx.healthcheck.enabled }}
readinessProbe:
httpGet:
Expand Down
4 changes: 2 additions & 2 deletions charts/backend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app:
healthcheck:
enabled: true
period: 5

PriorityClass: ""
exporter:
enabled: false

Expand All @@ -30,7 +30,7 @@ nginx:
repository: nginx
pullPolicy: IfNotPresent
tag: "1.19"

PriorityClass: ""
resources: {}
extraVolumeMounts: []
healthcheck:
Expand Down
2 changes: 1 addition & 1 deletion charts/frontend/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: frontend
description: A frontend Helm chart for Kubernetes
type: application
version: 3.6.13
version: 3.6.14
appVersion: "0.3.10"
4 changes: 3 additions & 1 deletion charts/frontend/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ spec:
env:
{{- toYaml . | nindent 14 }}
{{- end }}

{{- if .Values.cronjob.PriorityClass }}
priorityClassName: {{ .Values.cronjob.PriorityClass }}
{{- end }}
{{- if .Values.cronjob.config.secrets }}
envFrom:
- secretRef:
Expand Down
3 changes: 3 additions & 0 deletions charts/frontend/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ spec:
- secretRef:
name: {{ include "ucraft-base-helm.fullname" . }}
optional: true
{{- if .Values.deployment.PriorityClass }}
priorityClassName: {{ .Values.deployment.PriorityClass }}
{{- end }}
{{- if .Values.deployment.volumes.enabled }}
volumeMounts:
{{- if .Values.externalsecrets.enabled }}
Expand Down
4 changes: 3 additions & 1 deletion charts/frontend/templates/migrate-public-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ spec:
name: {{ .Release.Name }}-migration-secret
{{- end }}


{{- if .Values.migration.config.PriorityClass }}
priorityClassName: {{ .Values.migration.config.PriorityClass }}
{{- end }}
{{- if .Values.migration.extraVolumeMounts }}
volumeMounts:
{{- toYaml .Values.migration.extraVolumeMounts| nindent 12 }}
Expand Down
7 changes: 4 additions & 3 deletions charts/frontend/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ deployment:
volumes:
enabled: false
extraVolumeMounts: []
PriorityClass: ""
extraVolumes: []
service:
enabled: true
Expand Down Expand Up @@ -182,7 +183,7 @@ migration:
# - key: "file.cfg" # Key must be unique for each file
# contentsB64: "" # The file contents which have already been base-64 encoded
# contentsFile: "" # The path to a local file (note: contentsB64 will take precedence if not-empty)

PriorityClass: ""
## @param migration.args Override default container args (useful when using custom images)
##
image:
Expand Down Expand Up @@ -217,8 +218,7 @@ migration:
## ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
##
podAnnotations: {}



cronjob:
enabled: false
schedule: "* * * * *"
Expand All @@ -227,6 +227,7 @@ cronjob:
failedJobsHistoryLimit: 10
successfulJobsHistoryLimit: 1
nodeSelector: {}
PriorityClass: ""
image:
repository: "busybox"
tag: "latest"
Expand Down

0 comments on commit 031e73a

Please sign in to comment.