Git Product home page Git Product logo

cks's Introduction

Welcome to the SRE Learning Platform!

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.

Master Kubernetes concepts, gain practical experience, and excel in the CKA, CKS, and CKAD exams with the SRE Learning Platform.

Repository Structure

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.
    • cka - Directory contains everything related to CKA.
      • labs - Directory contains hands-on labs for the CKA exam.
      • mock - Directory contains mock scripts for the CKA exam.
    • cks - Directory contains everything related to CKS.
      • labs - Directory contains hands-on labs for the CKS exam.
      • mock - Directory contains mock scripts for the CKS exam.
  • terraform - Directory contains modules and Terraform environments.
    • environments - Directory contains terragrunt (terraform) environments.
    • modules - Directory contains terraform modules.

Requirements

About CKA, CKS, CKAD scenarios

  • 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.27 ]   https://kubernetes.io/releases/
Rintime :
    docker                   [1.21 , 1.23]
    cri-o                    [1.21 , 1.28]
    containerd               [1.21 , 1.28]   # cks default 1.27
    containerd_gvizor        [1.21 , 1.28]
OS for nodes  :
   ubuntu  :  20.04 LTS  ,  22.04 LTS   # cks default  20.04 LTS
CNI :  calico

Configuration

  • change backend_bucket ( region , backend_region optional ) in terragrunt.hcl :
  • create aws ec2 key-pair with name=cks in our region (default region = eu-north-1)

Command

Every command should be run from the project's root directory.

CKA
  • make run_cka_vpc - create vpc for CKA hands-on labs
  • TASK=01 make run_cka_k8s_task - create cka hands-on labs number 01
  • make delete_cka_k8s - delete cka hands-on labs
  • make delete_cka_vpc - delete vpc for CKA hands-on labs
  • TASK=01 make run_cka_k8s_mock - create mock CKA exam number 01
  • make delete_cka_k8s_mock - delete mock CKA exam
CKS
  • make run_cks_vpc - create vpc for CKS hands-on labs
  • TASK=10 make run_cks_k8s_task - create cks hands-on labs number 10
  • make delete_cks_k8s - delete cks hands-on labs
  • make delete_cks_vpc - delete vpc for CKS hands-on labs
  • TASK=01 make run_cks_k8s_mock - create mock CKS exam number 01
  • make delete_cks_k8s_mock - delete mock CKS exam
EKS
  • TASK={lab_number} make run_eks_task create hands-on lab
  • make delete_eks_task delete eks lab cluster

Usage scenarios

Video instruction for launching CKA mock exam

CKA hands-on lab
  • create vpc for CKA hands-on labs make run_cka_vpc
  • choose a hands-on lab number
  • change ami_id in {lab_number}/scripts/terragrunt.hcl if you changed region
  • create cka lab cluster TASK={lab_number} make run_cka_k8s_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_k8s_task
  • clean cka lab cluster .terraform folder make clean_cka_k8s
mock CKA exam
  • choose a mock exam number
  • change ami_id in {mock_number}/env.hcl if you changed region
  • change instance type from spot to on-demand in {mock_number}/env.hcl if you need
  • create mock CKA exam TASK={mock_number} make run_cka_k8s_mock
  • find worker_pc_ip in terraform output
  • connect to worker_pc_ip with your ssh key and user ubuntu
  • 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_k8s_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
  • create vpc for CKA hands-on labs make run_cks_vpc
  • choose a hands-on 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_k8s_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_k8s_task
  • clean cks lab cluster .terraform folder make clean_cks_k8s
mock CKS exam

mock CKS exam

  • choose a mock exam number
  • change ami_id in {mock_number}/env.hcl if you changed region
  • change instance type from spot to on-demand in {mock_number}/env.hcl if you need
  • create mock CKA exam TASK={mock_number} make run_cks_k8s_mock
  • find worker_pc_ip in terraform output
  • connect to worker_pc_ip with your ssh key and user ubuntu
  • 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_cks_k8s_mock
  • find exam solutions in {mock_number}/worker/files/solutions
  • 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 in terraform 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

Contribution

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 or on your personal blog and share your experiences

License and Usage Agreement

Contacts

If you encounter any issues or have questions about the project, you can reach out to:

email Telegram LinkedI

cks's People

Contributors

viktoruj avatar viktorujlocalize avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.