Skip to content

Commit

Permalink
Activate cpumanager at kind workers
Browse files Browse the repository at this point in the history
Signed-off-by: Quique Llorente <ellorent@redhat.com>
  • Loading branch information
qinqon committed Mar 19, 2020
1 parent 0fe192e commit 9ebf3c6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cluster-up/cluster/kind/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,16 @@ function _configure_network() {
function prepare_workers() {
# appending eventual workers to the yaml
for ((n=0;n<$(($KUBEVIRT_NUM_NODES-1));n++)); do
echo "- role: worker" >> ${KUBEVIRTCI_CONFIG_PATH}/$KUBEVIRT_PROVIDER/kind.yaml
cat << EOF >> ${KUBEVIRTCI_CONFIG_PATH}/$KUBEVIRT_PROVIDER/kind.yaml
- role: worker
kubeadmConfigPatches:
- |
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
featureGates:
CPUManager: true
cpuManagerPolicy: static
EOF
done
}

Expand Down

0 comments on commit 9ebf3c6

Please sign in to comment.