Skip to content

Commit

Permalink
k8s-1.30: Enable feature-gate of DRA alpha feature
Browse files Browse the repository at this point in the history
This is related to ongoing projects to test Dynamic Resource
Allocation (DRA) in KubeVirt:

    https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/

I'm enabling it in k8s-1.30 as per ongoing PCI passthrough driver
developed by Sibasish Behera as part of his GSoC 2024 project, see:

    https://github.com/kubevirt/dra-pci-driver

Based on Alice's patch.
Signed-off-by: Victor Toso <[email protected]>
  • Loading branch information
victortoso committed Aug 21, 2024
1 parent 4f37d07 commit 8102455
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions cluster-provision/k8s/1.30/manifests/kubeadm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ apiServer:
audit-policy-file: /etc/kubernetes/audit/adv-audit.yaml
enable-admission-plugins: NamespaceLifecycle,LimitRanger,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,NodeRestriction,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota
admission-control-config-file: /etc/kubernetes/psa.yaml
feature-gates: DynamicResourceAllocation=true
runtime-config: resource.k8s.io/v1alpha2=true
extraVolumes:
- hostPath: /etc/kubernetes/psa.yaml
mountPath: /etc/kubernetes/psa.yaml
Expand All @@ -37,6 +39,10 @@ clusterName: kubernetes
controllerManager:
extraArgs:
node-cidr-mask-size-ipv6: "116"
feature-gates: DynamicResourceAllocation=true
scheduler:
extraArgs:
feature-gates: DynamicResourceAllocation=true
etcd:
local:
dataDir: /var/lib/etcd
Expand All @@ -52,3 +58,8 @@ apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
clusterCIDR: 10.244.0.0/16,fd10:244::/112
mode: iptables
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
featureGates:
DynamicResourceAllocation: true

0 comments on commit 8102455

Please sign in to comment.