File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ const Env = z.object({
90
90
KUBERNETES_MEMORY_REQUEST_MIN_GB : z . coerce . number ( ) . min ( 0 ) . default ( 0 ) ,
91
91
KUBERNETES_MEMORY_REQUEST_RATIO : z . coerce . number ( ) . min ( 0 ) . max ( 1 ) . default ( 1 ) , // Ratio of memory limit, so 1 = 100% of memory limit
92
92
KUBERNETES_MEMORY_OVERHEAD_GB : z . coerce . number ( ) . min ( 0 ) . optional ( ) , // Optional memory overhead to add to the limit in GB
93
+ KUBERNETES_SCHEDULER_NAME : z . string ( ) . optional ( ) , // Custom scheduler name for pods
93
94
94
95
// Placement tags settings
95
96
PLACEMENT_TAGS_ENABLED : BoolEnv . default ( false ) ,
Original file line number Diff line number Diff line change @@ -274,6 +274,11 @@ export class KubernetesWorkloadManager implements WorkloadManager {
274
274
restartPolicy : "Never" ,
275
275
automountServiceAccountToken : false ,
276
276
imagePullSecrets : this . getImagePullSecrets ( ) ,
277
+ ...( env . KUBERNETES_SCHEDULER_NAME
278
+ ? {
279
+ schedulerName : env . KUBERNETES_SCHEDULER_NAME ,
280
+ }
281
+ : { } ) ,
277
282
...( env . KUBERNETES_WORKER_NODETYPE_LABEL
278
283
? {
279
284
nodeSelector : {
You can’t perform that action at this time.
0 commit comments