You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two ways to set up virtual nodes in the cluster, both of which require [Helm v3](https://helm.sh/docs/intro/install/) to be installed on your machine.
58
-
59
-
### 1. Using the `helm` command
57
+
Virtual nodes are configured by setting the following node attributes: `type`, `count`, `annotations`, `labels`, `resources`, and `conditions`. The `type` and `count` attributes are mandatory, while the rest are optional.
60
58
61
-
Run the `helm install` command and provide the `values.yaml` file that specifies the types and quantities of nodes you wish to create. For example, see the [values-example.yaml](../charts/virtual-nodes/values-example.yaml) file.
62
-
Currently, the system includes the following node types:
For these types, the resource attributes are already configured, but you can still modify `count`, `annotations`, `labels`, and `conditions`. For example:
65
+
```yaml
66
+
- type: dgxa100.80g
67
+
count: 2
68
+
annotations: {}
69
+
labels:
70
+
nvidia.com/gpu.count: "8"
71
+
nvidia.com/gpu.product: NVIDIA-A100-SXM4-80GB
72
+
conditions:
73
+
- message: kernel has no deadlock
74
+
reason: KernelHasNoDeadlock
75
+
status: "False"
76
+
type: KernelDeadlock
71
77
```
72
78
73
-
### 2. Using the Task Specification
79
+
For other node types, it is recommended to provide resource capacity. For example:
80
+
```yaml
81
+
- type: cpu.x86
82
+
count: 2
83
+
resources:
84
+
hugepages-1Gi: 0
85
+
hugepages-2Mi: 0
86
+
pods: 110
87
+
cpu: 48
88
+
memory: 196692052Ki
89
+
ephemeral-storage: 2537570228Ki
90
+
```
91
+
92
+
There are two ways to set up virtual nodes in the cluster, both of which require [Helm v3](https://helm.sh/docs/intro/install/) to be installed on your machine.
74
93
75
-
Set up virtual nodes within the `Configure` task in the task specification file. For this example, refer to [test-custom-resource.yml](../resources/tests/test-custom-resource.yml#L11-L19).
94
+
- Using the `helm` command:
76
95
77
-
### Enhancing Node Configurations
96
+
Run the `helm install` command and provide the `values.yaml` file that specifies the types and quantities of nodes you wish to create. For example, see the [values-example.yaml](../charts/virtual-nodes/values-example.yaml) file.
97
+
98
+
To deploy the nodes defined in `values-example.yaml`, use the following command:
In both methods, you can enhance node configurations by adding annotations, labels, and conditions.
103
+
- Using the task specification:
80
104
81
-
To introduce additional node types, update the `values.yaml` file or the `Configure` task used for node configuration with the node information (such as type, count, etc.), and include a parameters section in the [nodes.yaml](../charts/virtual-nodes/templates/nodes.yaml) file.
105
+
Set up virtual nodes within the `Configure` task in the task specification file.
106
+
107
+
For this example, refer to [test-custom-resource.yml](../resources/tests/test-custom-resource.yml#L11-L19).
82
108
83
109
> :warning: **Warning:** Ensure you deploy virtual nodes as the final step before launching `knavigator`. If you deploy any components after virtual nodes are created, the pods for these components might be assigned to virtual nodes, which could will their functionality.
0 commit comments