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
Copy file name to clipboardExpand all lines: content/en/blog/_posts/2024-03-11-diy-create-your-own-cloud-with-kubernetes-part-3/index.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,30 +64,30 @@ It facilitates the deployment of Kubernetes control planes in containers, thus r
64
64
65
65
## How it works
66
66
67
-
The primary object in Cluster API is the `Cluster` resource, which acts as the parent for all the others. Typically, this resource references two others: a resource describing the **control plane** and a resource describing the **infrastructure**, each managed by a separate provider.
67
+
The primary object in Cluster API is the Cluster resource, which acts as the parent for all the others. Typically, this resource references two others: a resource describing the **control plane** and a resource describing the **infrastructure**, each managed by a separate provider.
68
68
69
-
Unlike the Cluster, these two resources are not standardized, and their `kind` depends on the specific provider you are using:
69
+
Unlike the Cluster, these two resources are not standardized, and their kind depends on the specific provider you are using:
70
70
71
-
{{< figure src="clusterapi2.svg" caption="A diagram showing the relationship of a `Cluster` resource and the resources it links to in Cluster API" alt="A diagram showing the relationship of a Cluster resource and the resources it links to in Cluster API" >}}
71
+
{{< figure src="clusterapi2.svg" caption="A diagram showing the relationship of a Cluster resource and the resources it links to in Cluster API" alt="A diagram showing the relationship of a Cluster resource and the resources it links to in Cluster API" >}}
72
72
73
-
Within Cluster API, there is also a resource named `MachineDeployment`, which describes a group of nodes, whether they are physical servers or virtual machines. This resource functions similarly to standard Kubernetes resources such as Deployment, ReplicaSet, and Pod, providing a mechanism for the declarative description of a group of nodes and automatic scaling.
73
+
Within Cluster API, there is also a resource named MachineDeployment, which describes a group of nodes, whether they are physical servers or virtual machines. This resource functions similarly to standard Kubernetes resources such as Deployment, ReplicaSet, and Pod, providing a mechanism for the declarative description of a group of nodes and automatic scaling.
74
74
75
-
In other words, the `MachineDeployment` resource allows you to declaratively describe nodes for your cluster, automating their creation, deletion, and updating according to specified parameters and the requested number of replicas.
75
+
In other words, the MachineDeployment resource allows you to declaratively describe nodes for your cluster, automating their creation, deletion, and updating according to specified parameters and the requested number of replicas.
76
76
77
-
{{< figure src="machinedeploymentres.svg" caption="A diagram showing the relationship of a `MachineDeployment` resource and its children in Cluster API" alt="A diagram showing the relationship of a Cluster resource and its children in Cluster API" >}}
77
+
{{< figure src="machinedeploymentres.svg" caption="A diagram showing the relationship of a MachineDeployment resource and its children in Cluster API" alt="A diagram showing the relationship of a Cluster resource and its children in Cluster API" >}}
78
78
79
79
To create machines, MachineDeployment refers to a template for generating the machine itself and a template for generating its cloud-init config:
80
80
81
-
{{< figure src="clusterapi3.svg" caption="A diagram showing the relationship of a `MachineDeployment` resource and the resources it links to in Cluster API" alt="A diagram showing the relationship of a Cluster resource and the resources it links to in Cluster API" >}}
81
+
{{< figure src="clusterapi3.svg" caption="A diagram showing the relationship of a MachineDeployment resource and the resources it links to in Cluster API" alt="A diagram showing the relationship of a Cluster resource and the resources it links to in Cluster API" >}}
82
82
83
83
To deploy a new Kubernetes cluster using Cluster API, you will need to prepare the following set of resources:
84
84
85
-
- A general `Cluster` resource
86
-
- A `KamajiControlPlane` resource, responsible for the control plane operated by Kamaji
87
-
- A `KubevirtCluster` resource, describing the cluster configuration in KubeVirt
88
-
- A `KubevirtMachineTemplate` resource, responsible for the virtual machine template
89
-
- A `KubeadmConfigTemplate` resource, responsible for generating tokens and cloud-init
90
-
- At least one `MachineDeployment` to create some workers
85
+
- A general Cluster resource
86
+
- A KamajiControlPlane resource, responsible for the control plane operated by Kamaji
87
+
- A KubevirtCluster resource, describing the cluster configuration in KubeVirt
88
+
- A KubevirtMachineTemplate resource, responsible for the virtual machine template
89
+
- A KubeadmConfigTemplate resource, responsible for generating tokens and cloud-init
90
+
- At least one MachineDeployment to create some workers
0 commit comments