Skip to content

Commit 2046bee

Browse files
committed
docs: add docs to configure GPUs
1 parent f76a05c commit 2046bee

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

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

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

0 commit comments

Comments
 (0)