Get started with Kubexercises
Prerequisites
- Have installed a Kubernetes cluster version 1.19 or higher.
- Have installed
kubectl
in version 1.19 or higher.
Install the ke CLI
curl -fsSL -o ke.tar.gz https://kubexercises.s3-eu-west-1.amazonaws.com/v0.4.0/ke_0.4.0_linux_amd64.tar.gz
tar -zxf ke.tar.gz
mv ke /usr/local/bin/ke
rm ke.tar.gz
curl -fsSL -o ke.tar.gz https://kubexercises.s3-eu-west-1.amazonaws.com/v0.4.0/ke_0.4.0_darwin_amd64.tar.gz
tar -zxf ke.tar.gz
mv ke /usr/local/bin/ke
rm ke.tar.gz
curl -fsSL -o ke.tar.gz https://kubexercises.s3-eu-west-1.amazonaws.com/v0.4.0/ke_0.4.0_windows_amd64.tar.gz
tar -zxf ke.tar.gz
mv ke /usr/local/bin/ke
rm ke.tar.gz
Take your first activity
ke pods activity 1
Create a pod with the following characteristics:
pod name: my-nginx
container name: nginx
container image: nginx:1.17-alpine
pod state: Running
? Ready to review the exercise? (Y/n)
List available activities
To know the set of available activities of a group use the command ls
:
ke pods ls
List of available activities:
ke pods activity 1
ke pods activity 2