-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add variable for setting the GPUs on cluster
The change also includes a patch to set the GPUs on nutanixmachinetemplate resources for control plane and worker machine deployments.
- Loading branch information
1 parent
1d22fb9
commit 3ab96e7
Showing
4 changed files
with
168 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
labels: | ||
ccm: nutanix | ||
cluster.x-k8s.io/cluster-name: cluster-with-gpu | ||
name: cluster-with-gpu | ||
spec: | ||
topology: | ||
class: nutanix-quick-start | ||
controlPlane: | ||
metadata: {} | ||
replicas: 1 | ||
variables: | ||
- name: sshKey | ||
value: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMe61GqA9gqeX3zDCiwuU8zEDt3ckLnfVm8ZxN7UuFyL user@host | ||
- name: controlPlaneEndpoint | ||
value: | ||
IP: 1.2.3.4 | ||
port: 6443 | ||
- name: prismCentralEndpoint | ||
value: | ||
address: prismcentral.fake | ||
credentialSecret: nutanix-quick-start-pc-creds | ||
insecure: false | ||
port: 9440 | ||
- name: controlPlaneMachineDetails | ||
value: | ||
bootType: legacy | ||
clusterName: fake-cluster | ||
imageName: ubuntu-2204-kube-v1.29.2.qcow2 | ||
memorySize: 4Gi | ||
subnetName: fake-subnet | ||
systemDiskSize: 40Gi | ||
vcpuSockets: 2 | ||
vcpusPerSocket: 1 | ||
- name: workerMachineDetails | ||
value: | ||
bootType: legacy | ||
clusterName: fake-cluster | ||
imageName: ubuntu-2204-kube-v1.29.2.qcow2 | ||
memorySize: 4Gi | ||
subnetName: fake-subnet | ||
systemDiskSize: 40Gi | ||
vcpuSockets: 2 | ||
vcpusPerSocket: 1 | ||
- name: gpus | ||
value: | ||
- type: name | ||
name: fake-gpu | ||
- type: deviceID | ||
deviceID: 42 | ||
version: v1.29.2 | ||
workers: | ||
machineDeployments: | ||
- class: nutanix-quick-start-worker | ||
name: md-0 | ||
replicas: 2 |