Before you start, make sure you have completed the steps in Bootstrap.
Create a new AKS Kubernetes cluster
-
Set the environment variable to a name for this cluster.
See Get Started with AKS for information on naming your cluster.
-
Inspecting or editing the cluster objects:
Use your favorite editor.
The objects are Custom Resources defined by Cluster API components, and they belong in three different categories:
-
Cluster
A Cluster object has references to the infrastructure-specific and control plane objects.
-
Control Plane
-
Node Pool
A Node Pool is a collection of machines with identical properties. For example, a cluster might have one Node Pool with large memory capacity, another Node Pool with GPU support. Each Node Pool is described by three objects: The MachinePool references an object that describes the configuration of Kubernetes components (for example, kubelet) deployed on each node pool machine, and an infrastructure-specific object that describes the properties of all node pool machines. Here, it references a KubeadmConfigTemplate.
For in-depth documentation about the objects, read Concepts in the Cluster API Book.
-
-
Create the cluster from the objects.
-
Wait for the cluster control-plane to be ready:
The
READY
status will becomeTrue
after the cluster control-plane becomes ready. You can follow along in the following steps. -
Once the objects are created on the API server, the Cluster API controllers reconcile them. They create infrastructure and machines. As they progress, they update the Status of each object. Konvoy provides a command to describe the current status of the cluster:
-
As they progress, the controllers also create Events. List the Events using this command:
For brevity, the example uses
grep
. It is also possible to use separate commands to get Events for specific objects. For example,kubectl get events --field-selector involvedObject.kind="AKSCluster"
andkubectl get events --field-selector involvedObject.kind="AKSMachine"
.
Known Limitations
- The Konvoy version used to create a bootstrap cluster must match the Konvoy version used to create a workload cluster.
- Konvoy supports deploying one workload cluster.
- Konvoy generates a set of objects for one Node Pool.
- Konvoy does not validate edits to cluster objects.
When complete, you can explore the new cluster.