Skip to content

Commit

Permalink
add scheduler config file parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JCL38-ORANGE committed Oct 29, 2024
1 parent c535c16 commit 2e33968
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jobs/k3s-server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,18 @@ properties:
shutdownGracePeriod: 30s
shutdownGracePeriodCriticalPods: 10s

# scheduler config
k3s.scheduler-config-file:
description: content of scheduler config file, to enable tuning
# Note: no default set. no scheduler config file by default
# default: |
# # This is an example config that sets percentageOfNodesToScore to 50%
# apiVersion: kubescheduler.config.k8s.io/v1alpha1
# kind: KubeSchedulerConfiguration
# algorithmSource:
# provider: DefaultProvider
# percentageOfNodesToScore: 50

k3s.containerd_additional_env_vars:
description: additional env vars (name/value map array) to set for containerd (the key will be prefixed with CONTAINERD_, and set in k3s launch context
default: []
Expand Down
3 changes: 3 additions & 0 deletions jobs/k3s-server/templates/config/scheduler-config.yaml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<% if_p('k3s.scheduler-config-file') do |value| %>
<%= p('k3s.scheduler-config-file') %>
<% end %>

0 comments on commit 2e33968

Please sign in to comment.