Creating an Educates Cluster
Once we got our prerequisites - Docker Desktop and Educates - installed we can proceed with creating our Educates environment by issuing a single bootstrapping command:
educates create-cluster
This will do the following, in sequence:
- Create a purposefully crafted KinD configuration and save it to your local system.
- Create a local Kubernetes cluster using KinD and the configuration created in step 1.
- Set the context of
kubectlto the created cluster. - Create a local image registry to publish workshop images and resources to on
localhost:5001 - Configure KinD cluster nodes to use the created registry on a node and cluster level.
- Deploy the Educates framework to the cluster using
kapp.
The output of this command will look like this - see the annotations for references to each of the outlined steps.
Installation progress
Cluster config used is saved to:
~/Library/Application Support/educates/educates-cluster-config.yaml # (1)!
Creating cluster "educates" ... # (2)!
â Ensuring node image (kindest/node:v1.30.0) đŧ
â Preparing nodes đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
â Waiting ⤠1m0s for control-plane = Ready âŗ
âĸ Ready after 14s đ
Set kubectl context to "kind-educates" # (3)!
You can now use your cluster with:
kubectl cluster-info --context kind-educates --kubeconfig /Users/daniel/.kube/config
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community đ
Deploying local image registry # (4)!
Linking local image registry to cluster
Adding local image registry config (localhost:5001) to Kind nodes # (5)!
Adding local image registry config (registry.default.svc.cluster.local) to Kind nodes # (6)!
9:15:15AM: ---- applying 7 changes [0/137 done] ---- # (7)!
[...]
9:17:41AM: ---- applying complete [137/137 done] ----
9:17:41AM: ---- waiting complete [137/137 done] ----
Educates cluster has been created succesfully
- Step 1
- Step 2
- Step 3
- Step 4
- Step 5
- Step 5
- Step 6
This command might take several minutes to spin up the cluster, download all the needed container images, and bootstrap the environment. Enough time to get some coffee! â