Part 1: Set up
Creating an Educates cluster
With Docker, kubectl and the Educates CLI installed, one command creates your local Educates environment. It needs ports 80, 443 and 5001 free on your machine, and no other Kind cluster running.
educates create-clusterThis will do the following, in sequence:
- Create a Kind configuration made for Educates, save it on your machine, and create a local Kubernetes cluster from it.
- Set the context of
kubectlto the new cluster,kind-educates. - Deploy a local image registry on
localhost:5001, for the workshops and images you publish, and configure the cluster's nodes to use it. - Install Kyverno, the security policy engine.
- Install Contour, the ingress controller, and expose it on ports 80 and 443 of your machine.
- Deploy Educates.
The output of this command will look like this:
Cluster config used is saved to: /Users/you/Library/Application Support/educates/educates-cluster-config.yamlCreating cluster "educates" ... â Ensuring node image (kindest/node:v1.36.1) đŧ â 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"You can now use your cluster with:
kubectl cluster-info --context kind-educates --kubeconfig /Users/you/.kube/config
Have a question, bug, or feature request? Let us know! https://kind.sigs.k8s.io/#community đDeploying local image registryLinking local image registry to clusterAdding local image registry config (localhost:5001) to Kind nodesAdding local image registry config (registry.default.svc.cluster.local) to Kind nodes9:15:15AM: ---- applying 7 changes [0/137 done] ----[...]9:17:41AM: ---- applying complete [137/137 done] ----9:17:41AM: ---- waiting complete [137/137 done] ----Educates cluster has been created succesfullyThis 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! â