diff --git a/charts/cluster-overprovisioner/templates/cpa-cronjob.yaml b/charts/cluster-overprovisioner/templates/cpa-cronjob.yaml index d44e33c..7b3543d 100644 --- a/charts/cluster-overprovisioner/templates/cpa-cronjob.yaml +++ b/charts/cluster-overprovisioner/templates/cpa-cronjob.yaml @@ -47,5 +47,18 @@ spec: defaultMode: 0777 - name: tmp emptyDir: {} + {{- with $.Values.cpa.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with $.Values.cpa.affinity }} + affinity: + {{- toYaml . | nindent 12 }} + {{- end }} + {{- with $.Values.cpa.tolerations }} + tolerations: + {{- toYaml . | nindent 12 }} + {{- end }} + --- {{- end }} diff --git a/charts/cluster-overprovisioner/values.yaml b/charts/cluster-overprovisioner/values.yaml index da90672..d873bbe 100644 --- a/charts/cluster-overprovisioner/values.yaml +++ b/charts/cluster-overprovisioner/values.yaml @@ -158,14 +158,14 @@ defaultConfig: # If you want to use the schedule-feature, specify as many schedules as you want. # Example of a schedule: # - name: night -# cronTimeExpression: "0 16 * * 1-5" # disable overprovisioning Monday - Friday from 6pm -# timeZone: America/New_York # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones -# config: -# ladder: -# { -# "nodesToReplicas": -# [ -# [0, 0] -# ] -# } +# cronTimeExpression: "0 16 * * 1-5" # disable overprovisioning Monday - Friday from 6pm +# timeZone: America/New_York # https://en.wikipedia.org/wiki/List_of_tz_database_time_zones +# config: +# ladder: +# { +# "nodesToReplicas": +# [ +# [0, 0] +# ] +# } schedules: []