Skip to content

Commit 3c15094

Browse files
committed
docs: add docs to configure GPUs
1 parent f76a05c commit 3c15094

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

docs/content/customization/nutanix/machine-details.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,46 @@ spec:
228228
type: name
229229
name: project-name
230230
```
231+
232+
### (Optional) Add a GPU to a machine deployment
233+
234+
```yaml
235+
apiVersion: cluster.x-k8s.io/v1beta1
236+
kind: Cluster
237+
metadata:
238+
name: <NAME>
239+
spec:
240+
topology:
241+
variables:
242+
- name: workerConfig
243+
value:
244+
nutanix:
245+
machineDetails:
246+
gpus:
247+
- type: name
248+
name: "Ampere 40"
249+
workers:
250+
- class: nutanix-quick-start-worker
251+
metadata:
252+
annotations:
253+
cluster.x-k8s.io/cluster-api-autoscaler-node-group-max-size: "1"
254+
cluster.x-k8s.io/cluster-api-autoscaler-node-group-min-size: "1"
255+
name: gpu-0
256+
```
257+
258+
Applying this configuration will result in the following value being set:
259+
260+
- control-plane `NutanixMachineTemplate`:
261+
262+
```yaml
263+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
264+
kind: NutanixMachineTemplate
265+
metadata:
266+
name: nutanix-quick-start-gpu-nmt
267+
spec:
268+
template:
269+
spec:
270+
gpus:
271+
- type: name
272+
name: "Ampere 40"
273+
```

0 commit comments

Comments
 (0)