These instructions will guide you through configuring a GitHub Codespaces environment that you can use to run the course labs.
These steps must be completed prior to starting the actual labs.
- Ensure that you have created a repository by forking the skillrepos/adv-k8s-v2 project as a template into your own GitHub area.
- You do this by clicking the
Fork
button in the upper right portion of the main project page and following the steps to create a copy in your-github-userid/adv-k8s-v2 .
-
In your forked repository, start a new codespace.
- Click the
Code
button on your repository's landing page. - Click the
Codespaces
tab. - Click
Create codespaces on main
to create the codespace. - After the codespace has initialized there will be a terminal present.
- Click the
-
There is a simple one-node Kubernetes instance called minikube available in your codespace. Start it the following way:
-
Run the following commands in the codespace's terminal (The second one will take several minutes to run...):
alias k=kubectl minikube start
-
The output should look similar to the following.
-
๐ minikube v1.30.1 on Ubuntu 20.04 (docker/amd64)
โจ Using the docker driver based on existing profile
๐ Starting control plane node minikube in cluster minikube
๐ Pulling base image ...
๐ Updating the running docker "minikube" container ...
๐ณ Preparing Kubernetes v1.26.3 on Docker 23.0.2 ...
๐ Verifying Kubernetes components...
โช Using image gcr.io/k8s-minikube/storage-provisioner:v5
๐ Enabled addons: storage-provisioner, default-storageclass
๐ Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
After the codespace has started, open the labs document by going to the file tree on the left, find the file named codespace-labs.md, right-click on it, and open it with the Preview option.)
This will open it up in a tab above your terminal. Then you can follow along with the steps in the labs. Any command in the gray boxes is either code intended to be run in the console or code to be updated in a file.
Labs doc: Advanced Kubernetes Labs