Skip to content

Commit b5b0bff

Browse files
committed
refactoring
1 parent 88f8e7b commit b5b0bff

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

docs/usage/compute/machine.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Machine
22

3-
A `Machine` resource in `IronCore` is used to represent a compute resource or a virtual machine.
3+
A `Machine` resource in `Ironcore` is used to represent a compute resource or a virtual machine.
44
It serves as a means to configure network, storage, type of machine and other information needed to create a VM. The `MachineController` reconciler leverages this information to determine where the machine needs to be created and the type of machine that needs to be created along with the required `Network` and `Storage` configuration which will be further passed to respective `NetworkController` and `StorageController`.
55

66
## Example Machine Resource
@@ -34,38 +34,38 @@ spec:
3434

3535
**Key Fields**:
3636

37-
- machineClassRef (`string`): MachineClassRef is a reference to the machine class/flavor of the machine.
38-
- machinePoolRef (`string`): MachinePoolRef defines the machine pool to run the machine in. If empty, a scheduler will figure out an appropriate pool to run the machine in.
39-
- image (`string`): Image is the optional URL providing the operating system image of the machine.
40-
- volumes (`list`): Volumes are list volumes(Storage) attached to this machine.
41-
- networkInterfaces (`list`): NetworkInterfaces define a list of network interfaces present on the machine
42-
- ignitionRef (`string`): IgnitionRef is a reference to a secret containing the ignition YAML for the machine to boot up. If a key is empty, DefaultIgnitionKey will be used as a fallback.
37+
- machineClassRef (`string`): machineClassRef is a reference to the machine class/flavor of the machine.
38+
- machinePoolRef (`string`): machinePoolRef defines the machine pool to run the machine in. If empty, a scheduler will figure out an appropriate pool to run the machine in.
39+
- image (`string`): image is the optional URL providing the operating system image of the machine.
40+
- volumes (`list`): volumes are list volumes(storage) attached to this machine.
41+
- networkInterfaces (`list`): networkInterfaces define a list of network interfaces present on the machine
42+
- ignitionRef (`string`): ignitionRef is a reference to a `secret` containing the ignition YAML for the machine to boot up. If a key is empty, `DefaultIgnitionKey` will be used as a fallback. (`Note`: Refer to <a href="https://github.com/ironcore-dev/ironcore/tree/main/config/samples/e2e/bases/ignition">Sample Ignition</a> for creating ignition secret)
4343

4444

4545
## Reconciliation Process
4646

4747
1. **Machine Scheduling**:
48-
The MachineScheduler controller continuously watches for machines without an assigned MachinePool and tries to schedule it on available and matching MachinePool.
48+
The `MachineScheduler` controller continuously watches for `Machines` without an assigned `MachinePool` and tries to schedule it on available and matching MachinePool.
4949
- **Monitor Unassigned Machines**: The scheduler continuously watches for machines without an assigned `machinePoolRef`.
5050
- **Retrieve Available Machine Pools**: The scheduler fetches the list of available machine pools from the cache.
5151
- **Make Scheduling Decisions**: The scheduler selects the most suitable machine pool based on resource availability and other policies.
5252
- **Update Cache**: The scheduler updates the cache with recalculated allocatable `machineClass` quantities.
5353
- **Assign MachinePoolRef**: The scheduler assigns the selected `machinePoolRef` to the machine object.
5454

55-
2. **IRI Machine creation**: Once the Machine is allocated to a particular pool, the `MachineController` processes the `Machine` resource and it extracts the `IgnitionData`, `NetworkInterface` and `Volume` information from the `spec` and prepares IRI machine resource.
55+
2. **IRI Machine creation**: Once the Machine is allocated to a particular pool, the `MachineController` processes the `Machine` resource and it extracts the `ignitionData`, `networkInterfaces` and `volumes` information from the `spec` and prepares IRI machine resource.
5656

5757
3. **Machine Brokering**: Once IRIMachine object is prepared create/update the machine request is sent to a broker via the IRI interface(via GRPC call). An actual VM is created when the request reaches the compute provider. Once the response is received from IRI call Machine status is updated with the status recieved.
5858

59-
4. **Network Interface handling**: MachineControllerNetworkinterface takes care of attaching/detaching Network interfaces defined for the machine. Once the attachment is successful status is updated from `Pending` to `Attached`.
59+
4. **Network Interface handling**: `MachineControllerNetworkinterface` takes care of attaching/detaching Network interfaces defined for the machine. Once the attachment is successful status is updated from `Pending` to `Attached`.
6060

61-
5. **Volume handling**: MachineControllerVolume takes care of attach/detach of Volumes(Storage) defined for machine. Once the attachment is successful status is updated from `Pending` to `Attached`.
61+
5. **Volume handling**: `MachineControllerVolume` takes care of attach/detach of Volumes(Storage) defined for machine. Once the attachment is successful status is updated from `Pending` to `Attached`.
6262

63-
6. **Ephemeral resource handling**: If `NetworkIntreface` or `Volume` is defined as ephemeral(i.e. coupled to the lifetime of the machine object) in the machine spec, MachineEphemeralControllers takes care of creating and destroying respective objects on creation/deletion of the machine.
63+
6. **Ephemeral resource handling**: If `NetworkIntreface` or `Volume` is defined as ephemeral(i.e. coupled to the lifetime of the machine object) in the machine spec, `MachineEphemeralControllers` takes care of creating and destroying respective objects on creation/deletion of the machine.
6464

6565
## Lifecycle and States
6666

6767
A Machine can be in the following states:
68-
1. **Pending**: A Machine is in a `Pending` state when the Machine has been accepted by the system, but not yet completely started. This includes time before being bound to a MachinePool, as well as time spent setting up the Machine on that MachinePool.
68+
1. **Pending**: A Machine is in a Pending state when the Machine has been accepted by the system, but not yet completely started. This includes time before being bound to a MachinePool, as well as time spent setting up the Machine on that MachinePool.
6969
2. **Running**: A Machine in Running state when the machine is running on a MachinePool.
7070
2. **Shutdown**: A Machine is in a Shutdown state.
7171
3. **Terminating**: A Machine is Terminating.

docs/usage/compute/machineclass.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MachineClass
22

3-
A `MachineClass` is an `IronCore` resource used to represent a class/flavor of a Machine. It serves as a means to define the number of resources a `Machine` object can have as capabilities(For eg, CPU, memory) associated with a particular class. The `MachineClassController` reconciler leverages this information to create `MachineClass`.
3+
A `MachineClass` is an `Ironcore` resource used to represent a class/flavor of a Machine. It serves as a means to define the number of resources a `Machine` object can have as capabilities(For eg, CPU, memory) associated with a particular class. The `MachineClassController` reconciler leverages this information to create `MachineClass`.
44

55
## Example Machine Resource
66

docs/usage/compute/machinepool.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MachinePool
22

3-
A `MachinePool` is a resource in `IronCore` that represents a pool of compute resources managed collectively. It defines the infrastructure's compute configuration used to provision and manage `Machines`, ensuring resource availability and compatibility with associated `MachineClasses`.
3+
A `MachinePool` is a resource in `Ironcore` that represents a pool of compute resources managed collectively. It defines the infrastructure's compute configuration used to provision and manage `Machines`, ensuring resource availability and compatibility with associated `MachineClasses`.
44

55
## Example MachinePool Resource
66

@@ -24,8 +24,8 @@ For example `ironcore://shared`
2424

2525
## Reconciliation Process
2626

27-
- **Machine Type Discovery**: It constantly checks what kinds of MachineClasses are available in the `Ironcore` Infrastructure
28-
- **Compatibility Check**: Evaluating whether the MachinePool can manage available machine classes based on its capabilities.
27+
- **Machine Type Discovery**: It constantly checks what kinds of `MachineClasses` are available in the `Ironcore` Infrastructure
28+
- **Compatibility Check**: Evaluating whether the `MachinePool` can manage available machine classes based on its capabilities.
2929
- **Status Update**: Updating the MachinePool's status to indicate the supported `MachineClasses` with available capacity and allocatable.
3030
- **Event Handling**: Watches for changes in MachineClass resources and ensures the associated MachinePool is reconciled when relevant changes occur.
3131

0 commit comments

Comments
 (0)