@@ -11,6 +11,7 @@ Table of Contents
11
11
* [ Deploying as a DaemonSet] ( #deploying-as-a-daemonset )
12
12
* [ Build the plugin image] ( #build-the-plugin-image )
13
13
* [ Deploy plugin DaemonSet] ( #deploy-plugin-daemonset )
14
+ * [ Fractional resources] ( #fractional-resources )
14
15
* [ Deploy by hand] ( #deploy-by-hand )
15
16
* [ Build the plugin] ( #build-the-plugin )
16
17
* [ Run the plugin as administrator] ( #run-the-plugin-as-administrator )
@@ -45,6 +46,7 @@ passthrough and acceleration.
45
46
| Flag | Argument | Default | Meaning |
46
47
| :---- | :-------- | :------- | :------- |
47
48
| -enable-monitoring | - | disabled | Enable 'i915_monitoring' resource that provides access to all Intel GPU devices on the node |
49
+ | -resource-manager | - | disabled | Enable fractional resource management, [ see also dependencies] ( #fractional-resources ) |
48
50
| -shared-dev-num | int | 1 | Number of containers that can share the same GPU device |
49
51
50
52
The plugin also accepts a number of other arguments (common to all plugins) related to logging.
@@ -134,7 +136,17 @@ $ kubectl apply -k deployments/gpu_plugin/overlays/nfd_labeled_nodes
134
136
daemonset.apps/intel-gpu-plugin created
135
137
```
136
138
137
- The experimental fractional-resource feature can be enabled by running:
139
+ #### Fractional resources
140
+
141
+ With the experimental fractional resource feature you can use additional kubernetes extended
142
+ resources, such as GPU memory, which can then be consumed by deployments. PODs will then only
143
+ deploy to nodes where there are sufficient amounts of the extended resources for the containers.
144
+
145
+ Enabling the fractional resource feature isn't quite as simple as just enabling the related
146
+ command line flag. The DaemonSet needs additional RBAC-permissions
147
+ and access to the kubelet podresources gRPC service, plus there are other dependencies to
148
+ take care of, which are explained below. For the RBAC-permissions, gRPC service access and
149
+ the flag enabling, it is recommended to use kustomization by running:
138
150
139
151
``` bash
140
152
$ kubectl apply -k deployments/gpu_plugin/overlays/fractional_resources
@@ -144,7 +156,7 @@ clusterrolebinding.rbac.authorization.k8s.io/resource-reader-rb created
144
156
daemonset.apps/intel-gpu-plugin created
145
157
```
146
158
147
- Usage of fractional GPU resources, such as GPU memory, requires that the cluster has node
159
+ Usage of these fractional GPU resources requires that the cluster has node
148
160
extended resources with the name prefix ` gpu.intel.com/ ` . Those can be created with NFD
149
161
by running the [ hook] ( /cmd/gpu_nfdhook/ ) installed by the plugin initcontainer. When fractional resources are
150
162
enabled, the plugin lets a [ scheduler extender] ( https://github.com/intel/platform-aware-scheduling/tree/master/gpu-aware-scheduling )
0 commit comments