The SRE Learning Platform is an open-source hub designed to help IT engineers effectively prepare for the CKA (Certified Kubernetes Administrator), CKS (Certified Kubernetes Security Specialist), and CKAD (Certified Kubernetes Application Developer) exams. Additionally, this platform offers invaluable hands-on experience with AWS EKS (Elastic Kubernetes Service), equipping users with practical insights for real-world applications. Whether you're aiming to validate your skills, boost your career prospects in Kubernetes administration, security, application development, or delve into AWS EKS, this platform provides hands-on labs, practice tests, and expert guidance to ensure certification success.
- Prepare for the CKA: Certified Kubernetes Administrator Exam
- Enhance your skills for the CKS: Certified Kubernetes Security Specialist Exam
- Excel in the CKAD: Certified Kubernetes Application Developer Exam
Master Kubernetes concepts, gain practical experience, and excel in the CKA, CKS, and CKAD exams with the SRE Learning Platform.
The repository is organized into the following sections:
- Makefile - File contains scenarios for launching hands-on labs and mock exams.
- tasks - Directory contains lab scenarios and mock exam scripts.
- terraform - Directory contains modules and Terraform environments.
- environments - Directory contains terragrunt (terraform) environments.
- modules - Directory contains terraform modules.
- terrafrom >= v1.5.6
- terragrunt >= v0.36.1
- aws IAM user + Access key (or IAM role ) with Admin privilege for VPC, EC2, IAM, EKS
- aws profile
- the platform uses aws to create following resources : vpc, subnets, security groups, ec2 (spot ), s3
- after you launch the scenarios the platform will create all the necessary resources and give access to k8s clusters.
- to create clusters the platform uses kubeadm
- you can easily add your own scenario using the already existing terraform module k8s_self_managment
- k8s_self_managment module supports versions:
k8s version : [ 1.21 , 1.28 ] https://kubernetes.io/releases/
Rintime :
docker [1.21 , 1.23]
cri-o [1.21 , 1.28]
containerd [1.21 , 1.28] # cks, cka default 1.28
containerd_gvizor [1.21 , 1.28]
OS for nodes :
ubuntu : 20.04 LTS , 22.04 LTS # cks default 20.04 LTS
CNI : calico
- change backend_bucket ( region , backend_region optional ) in terraform/environments/terragrunt.hcl :
- create aws ec2 key-pair with name=cks in our region (default region = eu-north-1)
Every command should be run from the project's root directory.
CKA
TASK=01 make run_cka_task
- create cka hands-on labs number 01TASK=01 make delete_cka_task
- delete cka hands-on labsmake clean_cka_task
- clean terragrunt cache for cka_taskTASK=01 make run_cka_task_clean
- run cka_task with clean terragrunt cache for cka_taskmake output_cka_task
- show outputs from cka_task
TASK=01 make run_cka_k8s_mock
- create mock CKA exam number 01make delete_cka_mock
- delete mock CKA exammake clean_cka_mock
clean terragrunt cache for cka_mockTASK=01 make run_cka_mock_clean
- create mock CKA exam number 01 with clean terragrunt cachemake output_cka_mock
- show outputs from cka_mock
CKAD
TASK=01 make run_ckad_mock
- create mock CKAD exam number 01make delete_ckad_mock
- delete mock CKAD exammake clean_ckad_mock
clean terragrunt cache for ckad_mockTASK=01 make run_ckad_mock_clean
- create mock CKAD exam number 01 with clean terragrunt cachemake output_ckad_mock
- show outputs from ckad_mock
CKS
TASK=10 make run_cks_task
- create cks hands-on labs number 10TASK=10 make delete_cks_task
- delete cks hands-on labsmake clean_cks_task
- clean terragrunt cache for cks_taskTASK=10 make run_cks_task_clean
- run cks_task with clean terragrunt cache for cks_taskmake output_cks_task
- show outputs from cks_task
TASK=01 make run_cks_mock
- create mock CKS exam number 01make delete_cks_mock
- delete mock CKS exammake clean_cks_mock
clean terragrunt cache for cks_mockTASK=01 make run_cks_mock_clean
- create mock CKS exam number 01 with clean terragrunt cachemake output_cks_mock
- show outputs from cks_mock
HR
EKS
TASK={lab_number} make run_eks_task
create hands-on labmake delete_eks_task
delete eks lab cluster
CKA hands-on lab
- choose a hands-on lab number
- create cka lab cluster
TASK={lab_number} make run_cka_task
- find {master_external_ip} in terraform output
- log in to master node via ssh
ssh ubuntu@{master_external_ip} -i {key}
- check init logs
tail -f /var/log/cloud-init-output.log
- read lab descriptions in
{lab_number}/README.MD
- check solution in
{lab_number}/SOLUTION.MD
- delete cka lab cluster
make delete_cka_task
- clean cka lab cluster
.terraform
foldermake clean_cka_k8s
mock CKA exam
Video instruction for launching CKA mock exam
- choose a mock exam number
- change instance type from
spot
toon-demand
in{mock_number}/env.hcl
if you need - create mock CKA exam
TASK={mock_number} make run_cka_mock
- find
worker_pc_ip
interraform output
- connect to
worker_pc_ip
with your ssh key and userubuntu
- open questions list
{mock_number}/README.MD
and do tasks - use
ssh {kubernetes_nodename}
from work pc to connect to node - run
time_left
on work pc to check time - run
check_result
on work pc to check result - delete mock CKA exam
make delete_cka_mock
- find exam solutions in
{mock_number}/worker/files/solutions)
and * Video for mock 01 . - find exam tests in
{mock_number}/worker/files/tests.bats)
CKS hands-on lab
- choose CKS lab number
- change ami_id in
{lab_number}/scripts/terragrunt.hcl
if you changed region - create cka lab cluster
TASK={lab_number} make run_cks_task
- find {master_external_ip} in terraform output
- log in to master node via ssh
ssh ubuntu@{master_external_ip} -i {key}
- check init logs
tail -f /var/log/cloud-init-output.log
- read lab descriptions in
{lab_number}/README.MD
- check solution in
{lab_number}/SOLUTION.MD
- delete cks lab cluster
make delete_cks_task
- clean cks lab cluster
.terraform
foldermake clean_cks_task
mock CKS exam
Video instruction for launching CKS mock exam
- choose a mock exam number
- change ubuntu_version in
{mock_number}/env.hcl
if you need - change instance type from
spot
toon-demand
in{mock_number}/env.hcl
if you need - create mock CKS exam
TASK={mock_number} make run_cks_mock
orTASK={mock_number} make run_cks_mock_clean
if you'd like to run with clean terragrunt cache - find
worker_pc_ip
interraform output
- connect to
worker_pc_ip
with your ssh key and userubuntu
- open questions list
{mock_number}/README.MD
and do tasks - use
ssh {kubernetes_nodename}
from work pc to connect to node - run
time_left
on work pc to check time - run
check_result
on work pc to check result - delete mock CKS exam
make delete_cks_mock
- find exam solutions in
{mock_number}/worker/files/solutions
mock 1 solutions and video - find exam tests in
{mock_number}/worker/files/tests.bats
mock CKAD exam
Video instruction for launching CKAD mock exam
- choose a mock exam number
- change ubuntu_version in
{mock_number}/env.hcl
if you need - change instance type from
spot
toon-demand
in{mock_number}/env.hcl
if you need - create mock CKAD exam
TASK={mock_number} make run_ckad_mock
orTASK={mock_number} make run_ckad_mock_clean
if you'd like to run with clean terragrunt cache - find
worker_pc_ip
interraform output
- connect to
worker_pc_ip
with your ssh key and userubuntu
- open questions list
{mock_number}/README.MD
and do tasks - use
ssh {kubernetes_nodename}
from work pc to connect to node - run
time_left
on work pc to check time - run
check_result
on work pc to check result - delete mock CKAD exam
make delete_ckad_mock
- find exam solutions in
{mock_number}/worker/files/solutions
mock 1 solutions and video - find exam tests in
{mock_number}/worker/files/tests.bats
mock HR exam
Video instruction for launching HR mock exam
- choose a mock exam number
- change ubuntu_version in
{mock_number}/env.hcl
if you need - change instance type from
spot
toon-demand
in{mock_number}/env.hcl
if you need - create mock CKS exam
TASK={mock_number} make run_hr_mock
orTASK={mock_number} make run_hr_mock_clean
if you'd like to run with clean terragrunt cache - find
worker_pc_ip
interraform output
- connect to
worker_pc_ip
with your ssh key and userubuntu
- open questions list
{mock_number}/README.MD
and do tasks - use
ssh {kubernetes_nodename}
from work pc to connect to node - run
time_left
on work pc to check time - run
check_result
on work pc to check result - delete mock CKA exam
make delete_hr_mock
- find exam solutions in
{mock_number}/worker/files/solutions
mock 1 solutions and video - find exam tests in
{mock_number}/worker/files/tests.bats
EKS hands-on lab
- choose labs number
- create hands-on lab
TASK={lab_number} make run_eks_task
- find
worker_pc_ip
interraform output
- log in to worker_pc node via ssh
ssh ubuntu@{worker_pc_ip} -i {key}
- read lab descriptions in
{lab_number}/README.MD
- check solution in
{lab_number}/SOLUTION.MD
- delete eks lab cluster
make delete_eks_task
If you want to be part of the project development team, get in touch with us. We are always happy to welcome new members to our development team
If you want to say thank you or/and support the active development of SRE Learning Platform project :
- Star the SRE Learning Platform project on Github
- Feel free to write articles about the project on dev.to, medium, hackernoon or on your personal blog and share your experiences
If you encounter any issues or have questions about the project, you can reach out to: