Skip to content

Commit

Permalink
Allow static cpu manager policy to be enabled on nodepools
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Naik <[email protected]>
  • Loading branch information
arjunrn committed Aug 23, 2019
1 parent d531bde commit 41b05d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cluster/node-pools/worker-ubuntu-default/userdata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ write_files:
featureGates:
SupportPodPidsLimit: true
podPidsLimit: {{ .NodePool.ConfigItems.pod_max_pids }}
{{- end }}
{{- if eq .NodePool.ConfigItems.cpu_manager_policy "static" }}
cpuManagerPolicy: static
{{- end }}
maxPods: {{ .Cluster.ConfigItems.node_max_pods }}
healthzPort: 10248
Expand Down
2 changes: 2 additions & 0 deletions test/e2e/cluster_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ clusters:
profile: ${WORKER_PROFILE}-splitaz
min_size: 3
max_size: 21
config_items:
cpu_manager_policy: static
- discount_strategy: spot_max_price
instance_types: ["m4.large", "m5.large", "m5.xlarge", "m4.xlarge"]
name: default-worker
Expand Down

0 comments on commit 41b05d0

Please sign in to comment.