Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Added
- Added support for configuring admission Pod Disruption Budget via Helm values (`admission.podDisruptionBudget`) [#1490](https://github.com/kai-scheduler/KAI-Scheduler/pull/1490) [dttung2905](https://github.com/dttung2905)
- Added an opt-in `hamicore` binder plugin (depends on `gpusharing`) to write the HAMI-core GPU memory limit (`CUDA_DEVICE_MEMORY_LIMIT`) for fractional GPU pods.
- Added `global.podSecurityContext`, `global.resourceReservation.namespaceLabels`, `nodescaleadjuster.labels`, `crdupgrader.resources`, `topologyMigration.resources`, and `postCleanup.resources` to the Helm. chart.

### Changed
- Removed redundant `PodDisruptionBudgetImplemented` guard from operator PDB creation helper [#1613](https://github.com/kai-scheduler/KAI-Scheduler/pull/1613) [dttung2905](https://github.com/dttung2905)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ spec:
runAsUser: 10000
runAsNonRoot: true
fsGroup: 10000
{{- else }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
restartPolicy: Never
{{- if .Values.global.nodeSelector }}
Expand All @@ -43,6 +48,10 @@ spec:
- name: deleter
image: "{{ .Values.global.registry }}/{{ .Values.postCleanup.image.name }}:{{ .Values.postCleanup.image.tag | default .Values.global.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.postCleanup.image.pullPolicy }}
{{- with .Values.postCleanup.resources }}
resources:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- if .Values.global.securityContext }}
securityContext:
{{- toYaml .Values.global.securityContext | nindent 12 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,20 @@ spec:
runAsUser: 10000
runAsNonRoot: true
fsGroup: 10000
{{- else }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: upgrader
image: "{{ .Values.crdupgrader.image.registry | default .Values.global.registry }}/{{ .Values.crdupgrader.image.name }}:{{ .Values.crdupgrader.image.tag | default .Values.global.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.crdupgrader.image.pullPolicy }}
{{- with .Values.crdupgrader.resources }}
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if (lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "clusterversions.config.openshift.io") }}
securityContext:
runAsUser: 10000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,20 @@ spec:
runAsUser: 10000
runAsNonRoot: true
fsGroup: 10000
{{- else }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: migration
image: "{{ .Values.global.registry }}/{{ .Values.topologyMigration.image.name }}:{{ .Values.topologyMigration.image.tag | default .Values.global.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.topologyMigration.image.pullPolicy }}
{{- with .Values.topologyMigration.resources }}
resources:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if (lookup "apiextensions.k8s.io/v1" "CustomResourceDefinition" "" "clusterversions.config.openshift.io") }}
securityContext:
runAsUser: 10000
Expand Down
8 changes: 8 additions & 0 deletions deployments/kai-scheduler/templates/services/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ spec:
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
{{- with .Values.global.securityContext }}
securityContext:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- toYaml .Values.global.imagePullSecrets | nindent 8 }}
Expand All @@ -86,3 +90,7 @@ spec:
nodeSelector:
{{- toYaml .Values.global.nodeSelector | nindent 8 }}
{{- end }}
{{- with .Values.global.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ metadata:
name: {{ .Values.global.resourceReservation.namespace }}
annotations:
helm.sh/resource-policy: keep
{{- end }}
{{- with .Values.global.resourceReservation.namespaceLabels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ apiVersion: v1
kind: Namespace
metadata:
name: {{ .Values.nodescaleadjuster.scalingPodNamespace }}
{{- with .Values.nodescaleadjuster.labels }}
labels:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions deployments/kai-scheduler/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ global:
tag: ""
imagePullPolicy: IfNotPresent
securityContext: {}
podSecurityContext: {}
imagePullSecrets: [] # format: [{name: secret1}, {name: secret2}]
leaderElection: false
gpuSharing: false
Expand Down Expand Up @@ -35,6 +36,7 @@ global:
namespace: kai-resource-reservation
serviceAccount: kai-resource-reservation
appLabel: kai-resource-reservation
namespaceLabels: {}

operator:
image:
Expand Down Expand Up @@ -186,13 +188,15 @@ nodescaleadjuster:
# tag: "" # Optional: Override global.tag or Chart.AppVersion
scalingPodNamespace: kai-scale-adjust
affinity: {}
labels: {}

crdupgrader:
image:
name: crd-upgrader
pullPolicy: IfNotPresent
# registry: "" # Optional: Override global.registry (e.g. to mirror only the hook image)
# tag: "" # Optional: Override global.tag or Chart.AppVersion
resources: {}

topologyMigration:
# Enable migration of Kueue Topology CRs to KAI Topology CRs
Expand All @@ -205,6 +209,7 @@ topologyMigration:
name: crd-upgrader
pullPolicy: IfNotPresent
# tag: "" # Optional: Override global.tag or Chart.AppVersion
resources: {}

postCleanup:
enabled: true
Expand All @@ -214,6 +219,7 @@ postCleanup:
pullPolicy: IfNotPresent
# tag: "" # Optional: Override global.tag or Chart.AppVersion
serviceAccountName: post-delete-cleanup
resources: {}

prometheus:
# Enable Prometheus integration for time-aware fairness features.
Expand Down
Loading