Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit b1d2928

Browse files
committed
deploy: cdf7278
1 parent 9cf8d08 commit b1d2928

File tree

9 files changed

+110
-101
lines changed

9 files changed

+110
-101
lines changed

docs/concepts/howitworks/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/quick-start/index.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
In order to enable DRA you need to enable both the feature gates and the API groups.
1212
Kubernetes cluster with DRA KIND Install KIND.
1313
Create a cluster using the following configuration.
14-
kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane image: kindest/node:v1.33.1 - role: worker image: kindest/node:v1.33.1 - role: worker image: kindest/node:v1.33.1 featureGates: # Enable the corresponding DRA feature gates DynamicResourceAllocation: true DRAResourceClaimDeviceStatus: true runtimeConfig: api/beta : true kind create cluster --config kind."><meta itemprop=datePublished content="2024-12-17T14:47:05+00:00"><meta itemprop=dateModified content="2024-12-17T14:47:05+00:00"><meta itemprop=wordCount content="570"><meta name=twitter:card content="summary"><meta name=twitter:title content="Quick Start"><meta name=twitter:description content="DraNet depends on the Kubernetes feature Dynamic Resource Allocation (DRA), that is beta (disabled by default in Kubernetes ∂v1.32).
14+
kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: - role: control-plane image: kindest/node:v1.33.1 - role: worker image: kindest/node:v1.33.1 - role: worker image: kindest/node:v1.33.1 featureGates: # Enable the corresponding DRA feature gates DynamicResourceAllocation: true DRAResourceClaimDeviceStatus: true runtimeConfig: api/beta : true kind create cluster --config kind."><meta itemprop=datePublished content="2024-12-17T14:47:05+00:00"><meta itemprop=dateModified content="2024-12-17T14:47:05+00:00"><meta itemprop=wordCount content="571"><meta name=twitter:card content="summary"><meta name=twitter:title content="Quick Start"><meta name=twitter:description content="DraNet depends on the Kubernetes feature Dynamic Resource Allocation (DRA), that is beta (disabled by default in Kubernetes ∂v1.32).
1515
In order to enable DRA you need to enable both the feature gates and the API groups.
1616
Kubernetes cluster with DRA KIND Install KIND.
1717
Create a cluster using the following configuration.
@@ -39,7 +39,7 @@
3939
</span></span><span style=display:flex><span>
4040
</span></span><span style=display:flex><span>kubernetes_feature_enabled{name=<span style=color:#a31515>&#34;DynamicResourceAllocation&#34;</span>,stage=<span style=color:#a31515>&#34;BETA&#34;</span>} 1
4141
</span></span></code></pre></div><h2 id=installation>Installation</h2><p>You can install the latest stable version of <code>DraNet</code> using the provided manifest:</p><pre tabindex=0><code>kubectl apply -f https://raw.githubusercontent.com/google/dranet/refs/heads/main/install.yaml
42-
</code></pre><h3 id=how-to-use-it>How to use it</h3><p>Once the Kubernetes Network Driver is running you can see the list of Network Interfaces and its attributes published by the drivers using <code>kubectl get resourceslices -o yaml</code>:</p><pre tabindex=0><code>apiVersion: resource.k8s.io/v1beta1
42+
</code></pre><h3 id=how-to-use-it>How to use it</h3><p>Once the Kubernetes Network Driver is running you can see the list of Network Interfaces and its attributes published by the drivers using <code>kubectl get resourceslices -o yaml</code>:</p><pre tabindex=0><code>apiVersion: resource.k8s.io/v1
4343
kind: ResourceSlice
4444
metadata:
4545
creationTimestamp: &#34;2024-12-15T23:41:51Z&#34;
@@ -96,7 +96,7 @@
9696
bool: false
9797
name: gpu7rdma0
9898
...
99-
</code></pre><p>Once the resources are available, users can create <code>DeviceClasses</code>, <code>ResourceClaims</code> and/or <code>ResourceClaimTemplates</code> to schedule pods.</p><p>Define a <code>DeviceClass</code> that selects all the network interfaces that are connected to a <code>GCP Network</code></p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-yaml data-lang=yaml><span style=display:flex><span>apiVersion: resource.k8s.io/v1beta1
99+
</code></pre><p>Once the resources are available, users can create <code>DeviceClasses</code>, <code>ResourceClaims</code> and/or <code>ResourceClaimTemplates</code> to schedule pods.</p><p>Define a <code>DeviceClass</code> that selects all the network interfaces that are connected to a <code>GCP Network</code></p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-yaml data-lang=yaml><span style=display:flex><span>apiVersion: resource.k8s.io/v1
100100
</span></span><span style=display:flex><span>kind: DeviceClass
101101
</span></span><span style=display:flex><span>metadata:
102102
</span></span><span style=display:flex><span> name: dranet-cloud
@@ -106,18 +106,19 @@
106106
</span></span><span style=display:flex><span> expression: device.driver == &#34;dra.net&#34;
107107
</span></span><span style=display:flex><span> - cel:
108108
</span></span><span style=display:flex><span> expression: has(device.attributes[&#34;dra.net&#34;].cloudNetwork)
109-
</span></span></code></pre></div><p>Now you can create a <code>ResourceClaim</code> that connects to a specific network, in this case <code>dra-1-vpc</code> and reference that claim in a <code>Pod</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-yaml data-lang=yaml><span style=display:flex><span>apiVersion: resource.k8s.io/v1beta1
109+
</span></span></code></pre></div><p>Now you can create a <code>ResourceClaim</code> that connects to a specific network, in this case <code>dra-1-vpc</code> and reference that claim in a <code>Pod</code>:</p><div class=highlight><pre tabindex=0 style=background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4><code class=language-yaml data-lang=yaml><span style=display:flex><span>apiVersion: resource.k8s.io/v1
110110
</span></span><span style=display:flex><span>kind: ResourceClaim
111111
</span></span><span style=display:flex><span>metadata:
112112
</span></span><span style=display:flex><span> name: cloud-network-dra-net-1
113113
</span></span><span style=display:flex><span>spec:
114114
</span></span><span style=display:flex><span> devices:
115115
</span></span><span style=display:flex><span> requests:
116116
</span></span><span style=display:flex><span> - name: req-cloud-net-1
117-
</span></span><span style=display:flex><span> deviceClassName: dranet-cloud
118-
</span></span><span style=display:flex><span> selectors:
119-
</span></span><span style=display:flex><span> - cel:
120-
</span></span><span style=display:flex><span> expression: device.attributes[&#34;dra.net&#34;].cloudNetwork == &#34;dra-1-vpc&#34;
117+
</span></span><span style=display:flex><span> exactly:
118+
</span></span><span style=display:flex><span> deviceClassName: dranet-cloud
119+
</span></span><span style=display:flex><span> selectors:
120+
</span></span><span style=display:flex><span> - cel:
121+
</span></span><span style=display:flex><span> expression: device.attributes[&#34;dra.net&#34;].cloudNetwork == &#34;dra-1-vpc&#34;
121122
</span></span><span style=display:flex><span>---
122123
</span></span><span style=display:flex><span>apiVersion: v1
123124
</span></span><span style=display:flex><span>kind: Pod

0 commit comments

Comments
 (0)